﻿html, body {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif !important;
}

.resource-icon {
    min-width: 16px;
    min-height: 16px;
    color: inherit;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    display: inline-block;
}

    .resource-icon.info {
        -webkit-mask-image: url('images/info-icon.svg');
        mask-image: url('images/info-icon.svg');
    }

    .resource-icon.phone {
        -webkit-mask-image: url('images/phone-icon.svg');
        mask-image: url('images/phone-icon.svg');
    }

    .resource-icon.web {
        -webkit-mask-image: url('images/web-icon.svg');
        mask-image: url('images/web-icon.svg');
    }

.home-navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

    .home-navbar-header .brand {
        display: flex;
        align-items: center;
    }

    .home-navbar-header .title {
        color: rgba(30, 49, 96, 1);
        font-size: 3.5rem;
        margin: 0;
    }

.carousel-fade .carousel-control-prev, .carousel-control-next {
    top: auto;
    bottom: 20px;
    z-index: 10;
    background-image: none;
    width: 5%;
}

    .carousel-fade .carousel-control-prev.left {
        left: auto;
        right: 60px;
    }

    .carousel-fade .carousel-control-next.right {
        right: 20px;
    }

    .carousel-fade .carousel-control-prev.playpause {
        left: auto;
        right: 110px;
        bottom: 20px;
        font-size: 2em;
    }

.carousel-inner img {
    display: block;
    width: 100%;
    min-height: 250px;
    border-radius: 8px;
}

section.banner {
    position: relative;
    margin-top: 16px;
}

    section.banner .banner-caption {
        position: absolute;
        top: 15px;
        left: 40px;
        z-index: 10;
    }

.banner-caption h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--color-danger);
    text-shadow: 2px 2px 2px #FFFF;
}

.banner-caption h2 {
    font-size: 3.5rem;
    color: var(--color-danger);
    text-shadow: 2px 2px 2px #FFFF;
}

.banner-caption p {
    font-size: 1.8rem;
    color: #000000;
    margin: 0;
}

section {
    --color-info: rgba(0, 182, 222, 0.70);
    --color-danger: rgba(238, 45, 117, 0.70);
    --color-warning: rgba(250, 167, 51, 0.70);
    --color-success: rgba(179, 216, 140, 0.70);
    --color-heading-blue: rgba(30, 49, 96, 1);
    margin-top: 32px;
    margin-bottom: 32px;
}

    section .row {
        margin: 0;
    }

    section h4 {
        text-transform: uppercase;
        color: var(--color-heading-blue);
        font-size: 24px;
        font-weight: 400;
    }

    section.tips h4 {
        font-size: 28px
    }

    section.tips .bg-info {
        border-radius: 8px 0 0 8px;
        background: var(--color-info) !important;
    }

    section.tips .bg-danger {
        background: var(--color-danger) !important;
    }

    section.tips .bg-warning {
        background: var(--color-warning) !important;
    }

    section.tips .bg-success {
        border-radius: 0 8px 8px 0;
        background: var(--color-success) !important;
    }

.tips-card {
    font-family: inherit;
    padding-top: 16px;
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .tips-card .heading {
        display: flex;
        gap: 8px;
        max-width: 280px;
    }

        .tips-card .heading .number {
            font-size: 2rem;
            font-weight: 600;
            min-width: 40px;
            width: 40px;
            height: 40px;
            border: 1px solid #111;
            border-radius: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .tips-card .heading .title {
            font-size: 18px;
            font-weight: 500;
            line-height: 1.5rem;
        }

    .tips-card .body-content {
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5rem;
    }

.alert-concerned h2, p, strong {
    color: var(--color-heading-blue);
    font-size: 18px;
    font-style: normal;
    line-height: normal;
}

.alert-concerned p.heading {
    font-size: 30px;
    font-weight: 500;
    line-height: 42px;
}

.alert-concerned p {
    font-weight: 400;
}

.alert-concerned strong {
    font-weight: 600;
}

section .btn-make-a-report {
    font-size: 1.5rem;
    width: 400px;
    height: 60px;
    border-radius: 32px;
    border: 1px solid #FFF;
    background: var(--color-heading-blue);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.resource-row {
    display: flex;
    gap: 12px;
}

    .resource-row .resource-col {
        flex: 1;
    }

.resource-card {
    display: flex;
    flex-direction: column;
}

    .resource-card .title {
        color: var(--color-heading-blue);
        font-size: 18px;
        font-weight: 500;
        line-height: 1.4;
        min-height: 58px;
        display: flex;
        align-items: flex-end;
        padding-bottom: 6px;
        margin-bottom: 14px;
        border-bottom: 2px solid;
    }

        .resource-card .title.ul-info {
            border-bottom-color: var(--color-info);
        }

        .resource-card .title.ul-danger {
            border-bottom-color: var(--color-danger);
        }

        .resource-card .title.ul-warning {
            border-bottom-color: var(--color-warning);
        }

        .resource-card .title.ul-success {
            border-bottom-color: var(--color-success);
        }

    .resource-card .link-container {
        display: flex;
        flex-direction: column;
    }

        .resource-card .link-container .link {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 4px;
        }

            .resource-card .link-container .link a,
            .resource-card .link-container .link-language a {
                color: var(--color-heading-blue);
                font-size: 16px;
                font-weight: 400;
                text-decoration: underline;
                text-decoration-line: underline;
            }

#btnScrollToTop {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    cursor: pointer;
}

    #btnScrollToTop .scroll-to-top-content {
        display: flex;
        align-items: center;
        gap: 4px;
    }

        #btnScrollToTop .scroll-to-top-content .icon-with-text {
            display: none;
        }

    #btnScrollToTop:hover .scroll-to-top-content .icon {
        display: none;
    }

    #btnScrollToTop:hover .scroll-to-top-content .icon-with-text {
        display: block;
    }

#btnScrollToTop {
    transition: transform 0.3s ease;
}

    #btnScrollToTop:hover {
        transform: translateY(-5px) scale(1.05);
    }

#DialogConfirmSubmit .modal-title-custom {
    font-size: 18px;
    color: var(--color-heading-blue);
}

#DialogConfirmSubmit .text-custom {
    color: #000 !important;
    font-size: 16px;
}

#DialogConfirmSubmit .content-wrapper h5:first-child b {
    font-weight: 700;
    font-size: 16px;
}

#DialogConfirmSubmit .emergency-text {
    font-weight: 600;
}

/*--------------------------------------------------*/
/* Mobile design
/*--------------------------------------------------*/
@media only screen and (max-width: 991.98px) {
    body {
        font-size: 10px;
    }

    section.tips .row {
        gap: 8px;
    }

    section.tips .col-md-3 {
        border-radius: 8px;
    }

    section.banner .carousel-inner img {
        min-height: 200px;
        object-fit: cover;
    }

    .banner-caption {
        top: 0px !important;
        left: 0px !important;
    }

        .banner-caption h1 {
            font-size: 1.6rem;
            padding-left: 12px;
            margin-top: 8px;
        }

        .banner-caption h2 {
            font-size: 1.6rem;
            padding-left: 12px;
            margin-top: 16px;
        }

        .banner-caption p {
            font-size: 1.2rem;
            background-color: rgba(255, 255, 255, 0.4);
            padding: 4px;
            padding-left: 12px;
            width: 94vw;
        }

    .home-navbar-header .title {
        font-size: 1.5rem;
        max-width: 50%;
    }

    .resource-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

/* Make the EXISTING button sticky only on mobile */
@media (max-width: 768px) {

    .btn-make-a-report-container {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99999;
        width: 100%;
        margin: 0;
        padding: 12px 0 16px 0;
        background-color: rgba(255, 255, 255, 0.7);
    }

    .btn-make-a-report {
        height: 56px !important;
    }

    body {
        padding-bottom: 85px;
        margin-bottom: 0;
    }

    #btnScrollToTop {
        bottom: 100px;
    }

        #btnScrollToTop:active .scroll-to-top-content .icon {
            display: none;
        }

        #btnScrollToTop:active .scroll-to-top-content .icon-with-text {
            display: block;
        }

    #footer {
        position: relative;
        bottom: auto;
        height: auto;
    }
}

@media (max-width: 1200px) {
    .resource-row {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
    }

        .resource-row .resource-col {
            flex: 1 1 48%;
        }
}
