body,
p {
    font-family: "Josefin Sans", Helvetica, sans-serif;
    line-height: normal;
}

.btn {
    margin: 0.25em;
    white-space: normal;
}

.btn-info {
    background-color: #9e9e9e;
    border-color: #9e9e9e;
}

.btn-warning,
.btn-warning:hover {
    color: #fff;
}

.btn-info:active,
.btn-info:focus,
.btn-info:hover {
    background-color: #424242 !important;
    border-color: #424242 !important;
    color: white;
}

.btn-info:active,
.btn-info:focus {
    box-shadow: 0 0 0 0.2rem rgba(88, 89, 90, 0.5) !important;
}

section {
    padding: 40px;
}

#assessment {
    padding-top: 32px;
    padding-bottom: 24px;
}

#example {
    padding-top: 24px;
    padding-bottom: 40px;
}

@media (min-width: 769px) {
    #assessment {
        padding-top: 40px;
        padding-bottom: 32px;
    }

    #assessment .card {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    #assessment .mid-sized-text {
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    #example {
        padding-top: 32px;
        padding-bottom: 48px;
    }
}

.small-sized-text {
    font-size: 15px;
    font-style: normal;
    font-family: "Josefin Sans", Helvetica, sans-serif;
    line-height: normal;
}

.mid-sized-text {
    font-size: 18px;
    font-style: normal;
    font-family: "Josefin Sans", Helvetica, sans-serif;
    line-height: 1.5;
}

.text-block {
    margin-top: 1em;
}

.text-block>span {
    color: #67A8E8;
}

.img-stand-alone {
    margin-top: 1em;
}


/* DEFAULT NAV */

#defaultNav {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #67A8E8;
}

#defaultNav .navbar-nav .nav-item .nav-link.active,
#defaultNav .navbar-nav .nav-item .nav-link:hover {
    color: #424242;
}

#defaultNav .navbar-nav .nav-item .nav-link {
    padding: 1.1em 1em !important;
}

#defaultNav .navbar-nav .nav-item .nav-link {
    font-size: 90%;
    font-weight: 400;
    padding: 0.75em 0;
    letter-spacing: 1px;
    color: white;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

#defaultNav .navbar-toggler {
    font-size: 12px;
    right: 0;
    padding: 13px;
    text-transform: uppercase;
    color: #424242;
    border: 0;
    background-color: #fff;
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


/* REGULAR TEXT LINK */

a.text-link {
    color: #67A8E8;
}

a.text-link:hover {
    color: #0d47a1;
}


/* DOWN ARROW */

a#go-arrow {
    display: block;
    padding-top: 5em;
    box-shadow: none;
    color: #fff;
}

a#go-arrow:hover {
    color: #9e9e9e;
}


/* MAKE ARROW BOUNCE */

@-moz-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        -moz-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -moz-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -moz-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

@-webkit-keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -moz-transform: translateY(-30px);
        -ms-transform: translateY(-30px);
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -moz-transform: translateY(-15px);
        -ms-transform: translateY(-15px);
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

.bounce {
    -moz-animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

/* BOOSTRAP CARD */

div.card {
    margin-top: 20px;
    font-family: "Josefin Sans", Helvetica, sans-serif;
    line-height: normal;
}

.card-header {
    color: #fff;
    background-color: #67A8E8;
}

.card-header>h5>a {
    color: #fff;
}

.card-header>h5>a:hover {
    color: #0d47a1;
    text-decoration: none;
}


/* FORM */

.form-row {
    margin: 0.25em;
}


/* TIMELINE */

.timeline-image>a {
    color: #fff;
}

.timeline-image>a:hover {
    color: #0d47a1;
    text-decoration: none;
}


/* Responsive Early-Detector logo (all pages) */
.brand-logo,
header.masthead .brand-logo,
.logo.pull-left .brand-logo {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 76px;
    margin-left: auto;
    margin-right: auto;
}

header.masthead .col-md-12 {
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
}

.logo.pull-left {
    max-width: 100%;
    float: none !important;
    text-align: center;
}

/* Masthead hero layout */
header.masthead {
    color: #0d47a1;
}

header.masthead .masthead-content {
    text-align: center;
    padding-top: 20px;
}

header.masthead .masthead-logo {
    display: block;
    width: 194px;
    max-width: 90%;
    height: auto;
    margin: 0 auto 16px;
}

header.masthead .intro-text {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 12px;
}

header.masthead .intro-text .intro-lead-in {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.65rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
    margin: 0 0 14px;
    color: #0d47a1;
}

header.masthead .intro-text .intro-heading {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #757575;
}

header.masthead .intro-text .intro-subtext {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.45;
    margin: 0 0 18px;
    color: #0d47a1;
}

header.masthead .intro-pdf-block {
    margin: 8px 0 12px;
}

header.masthead .intro-pdf-icon {
    display: block;
    width: 85px;
    height: 95px;
    margin: 0 auto 10px;
}

header.masthead .intro-pdf-heading {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #757575;
}

header.masthead .intro-links {
    margin-top: 8px;
}

@media (min-width: 769px) {
    header.masthead {
        background-position: 58% center;
    }

    header.masthead .masthead-content {
        width: 100%;
        max-width: none;
        padding-top: 36px;
        padding-left: 14%;
        padding-right: 14%;
    }

    header.masthead .intro-text {
        max-width: 460px;
        margin: 0 auto;
        padding-top: 40px;
        padding-bottom: 72px;
    }

    a#go-arrow {
        color: #fff;
    }
}

/* FAQ card layout */
.faq-section {
    background-color: #f0f2f5;
    padding: 48px 0 56px;
}

.faq-section .section-heading {
    margin-bottom: 32px;
}

.faq-grid {
    display: flex;
    flex-wrap: wrap;
}

.faq-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    padding: 24px 22px 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.faq-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #67A8E8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.faq-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2a2a2c;
    margin-bottom: 10px;
    line-height: 1.3;
}

.faq-card-summary {
    color: #5a5a5a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    flex-grow: 1;
}

.faq-toggle {
    color: #67A8E8;
    font-weight: 600;
    padding: 0;
    margin-top: auto;
    text-align: left;
    text-decoration: none;
    font-size: 0.95rem;
    align-self: flex-start;
}

.faq-toggle:hover,
.faq-toggle:focus {
    color: #4f94d4;
    text-decoration: underline;
}

.faq-card-detail {
    margin-top: 10px;
    margin-bottom: 4px;
}

.faq-card-detail p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
    text-align: left;
}

/* MOBILE MODE */

@media (max-width: 768px) {
    section {
        padding: 5px;
    }
    .btn {
        margin: 0.25em;
    }
    /* give more space when no text in header */
    .intro-lead-in {
        margin-top: 1em;
    }
    header.masthead {
        background-color: #67A8E8;
        background-image: url("../img/background-mobile.avif");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }
    header.masthead .masthead-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    header.masthead .masthead-logo {
        width: 160px;
        margin-bottom: 12px;
    }
    header.masthead .intro-text {
        max-width: 340px;
        padding-top: 8px;
        padding-bottom: 16px;
    }
    header.masthead .intro-pdf-icon {
        width: 64px;
        height: auto;
    }
    .faq-section {
        padding: 32px 0 40px;
    }
    .faq-card {
        padding: 20px 16px 16px;
    }
    ul.social-buttons {
        margin: 1em;
    }
    .col,
    .col-12,
    .col-4,
    .col-6,
    .col-auto,
    .col-lg,
    .col-lg-12,
    .col-lg-4,
    .col-lg-6,
    .col-lg-auto,
    .col-md,
    .col-md-12,
    .col-md-4,
    .col-md-6,
    .col-md-auto,
    .col-sm,
    .col-sm-12,
    .col-sm-4,
    .col-sm-6,
    .col-sm-auto,
    .col-xl,
    .col-xl-12,
    .col-xl-4,
    .col-xl-6,
    .col-xl-auto {
        padding-right: 5px;
        padding-left: 5px;
    }

    .card-body {
        padding: 0.5rem;
    }
    div.card {
        margin-top: 5px;
    }
}
