/* ==========================================================================
   Home page sections below the hero: Welcome, then Features.
   ========================================================================== */

/* Welcome ---------------------------------------------------------------- */

.welcome-area .welcome-title {
    margin-bottom: 34px;
}

.welcome-area .welcome-title .main-heading1 {
    display: block;
    font-weight: 500;
}

.welcome-area .welcome-title .main-heading2 {
    margin-top: 6px;
    color: var(--thm-text);
    font-weight: 700;
}

/* .sec-title centres the decor already, but the theme's .style-two variant
   pulls it left, so pin it back to the middle for this heading. */
.welcome-area .welcome-title span.decor {
    margin-left: auto;
    margin-right: auto;
}

.welcome-area .welcome-text {
    color: var(--thm-secondary-text);
    line-height: 1.85;
}

.welcome-area .welcome-text > *:last-child {
    margin-bottom: 0;
}

.welcome-area .welcome-media .wel-img img {
    width: 100%;
    height: auto;
    border-radius: var(--thm-radius);
}

/* Phones and tablets: image first, text underneath */
@media (max-width: 767.98px) {
    .welcome-area .welcome-media {
        order: -1;
        margin-bottom: 24px;
    }
    .welcome-area .welcome-title {
        margin-bottom: 24px;
    }
}


/* Features --------------------------------------------------------------- */

.notification-boxes {
    margin-top: 10px;
}

.notification-boxes .feature-box {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 34px 26px 30px;
    border: 1px solid #e6e6e6;
    border-radius: var(--thm-radius);
    background-color: #fff;
    transition: transform .35s cubic-bezier(.2, .7, .3, 1),
                box-shadow .35s ease,
                border-color .35s ease;
}

/* The icon now sits inside the card, in a round badge */
.notification-boxes .feature-box .icon {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    margin: 0 auto 6px;
    border: 2px solid rgba(0, 0, 0, .07);
    border-radius: 50%;
    background-color: #f5f7fa;
    transition: background-color .35s ease, border-color .35s ease, transform .35s ease;
}

.notification-boxes .feature-box .icon i {
    position: relative;
    z-index: 2;
    line-height: 1;
    font-size: 34px;
    color: var(--thm-primary);
    transition: color .35s ease, transform .45s cubic-bezier(.2, .7, .3, 1);
}

/* A ring that pulses outwards from the badge on hover - deliberately different
   from the theme's border-drawing effect that used to wrap the whole card. */
.notification-boxes .feature-box .icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--thm-primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.85);
    transition: transform .55s ease, opacity .55s ease;
}

.notification-boxes .feature-box:hover,
.notification-boxes .feature-box:focus-within {
    transform: translateY(-8px);
    border-color: var(--thm-primary);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.notification-boxes .feature-box:hover .icon,
.notification-boxes .feature-box:focus-within .icon {
    background-color: var(--thm-primary);
    border-color: var(--thm-primary);
    transform: translateY(-4px);
}

.notification-boxes .feature-box:hover .icon i,
.notification-boxes .feature-box:focus-within .icon i {
    color: #fff;
    transform: rotateY(360deg);
}

.notification-boxes .feature-box:hover .icon::after,
.notification-boxes .feature-box:focus-within .icon::after {
    opacity: 0;
    transform: scale(1.5);
    transition: transform .65s ease, opacity .65s ease;
    animation: featurePulse 1.4s ease-out .05s infinite;
}

@keyframes featurePulse {
    0%   { opacity: .55; transform: scale(.9); }
    70%  { opacity: 0;   transform: scale(1.45); }
    100% { opacity: 0;   transform: scale(1.45); }
}

.notification-boxes .feature-box h4 {
    margin-top: 16px;
    margin-bottom: 12px;
}

.notification-boxes .feature-box .btn-transparent {
    border-radius: var(--thm-radius);
}

@media (prefers-reduced-motion: reduce) {
    .notification-boxes .feature-box,
    .notification-boxes .feature-box .icon,
    .notification-boxes .feature-box .icon i,
    .notification-boxes .feature-box .icon::after {
        transition: none;
        animation: none;
    }
    .notification-boxes .feature-box:hover {
        transform: none;
    }
    .notification-boxes .feature-box:hover .icon i {
        transform: none;
    }
}


/* Services: the feature card again, with the icon badge straddling the top
   border of the box instead of sitting inside it. */

.service-boxes .feature-box.icon-on-border {
    overflow: visible;
    margin-top: 58px;
    padding-top: 58px;
}

.service-boxes .feature-box.icon-on-border .icon {
    position: absolute;
    top: -43px;                 /* half the 86px badge sits above the border */
    left: 50%;
    margin: 0;
    transform: translateX(-50%);
}

.service-boxes .feature-box.icon-on-border:hover .icon,
.service-boxes .feature-box.icon-on-border:focus-within .icon {
    transform: translateX(-50%) translateY(-4px);
}

.service-boxes .feature-box.icon-on-border p {
    margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .service-boxes .feature-box.icon-on-border:hover .icon {
        transform: translateX(-50%);
    }
}
