.home-page {
    color: #1f2d3d;
}

.home-impact-hero {
    border: 1px solid #c9def1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: 0 18px 36px rgba(6, 31, 58, 0.14);
    background: linear-gradient(130deg, #f8fbff 0%, #eaf4ff 60%, #f2fbff 100%);
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.home-impact-corner-art {
    position: absolute;
    top: -8px;
    right: -16px;
    width: 360px;
    max-width: 40%;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.home-impact-hero > *:not(.home-impact-corner-art) {
    position: relative;
    z-index: 1;
}

.home-impact-copy {
    flex: 1 1 420px;
    padding: 26px 24px;
    position: relative;
}

.home-impact-copy:after {
    content: "";
    width: 140px;
    height: 140px;
    position: absolute;
    right: -42px;
    bottom: -46px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(39, 160, 233, 0.2) 0%, rgba(39, 160, 233, 0) 72%);
    pointer-events: none;
}

.home-impact-kicker {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0b5f98;
    background: #daf0ff;
    margin-bottom: 10px;
}

.home-impact-title {
    margin: 0;
    font-size: 38px;
    line-height: 1.12;
    font-weight: 800;
    color: #0d2e4d;
    max-width: 650px;
}

.home-impact-sub {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: #3d5d78;
    max-width: 580px;
}

.home-impact-mission {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: #2e4d66;
    max-width: 590px;
}

.home-impact-mission strong {
    color: #14456b;
}

.home-impact-cta {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    padding: 14px 26px;
    font-size: 15px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(120deg, #0e3f68 0%, #1a74b5 100%);
    box-shadow: 0 8px 18px rgba(13, 52, 83, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-impact-cta:hover,
.home-impact-cta:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(13, 52, 83, 0.3);
}

.home-impact-metrics {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-impact-metric-item {
    border: 1px solid #c6def2;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    padding: 9px 10px;
}

.home-impact-metric-item strong {
    display: block;
    color: #0d2e4d;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 800;
}

.home-impact-metric-item span {
    display: block;
    margin-top: 3px;
    color: #3d5d78;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

.home-hero-shell {
    flex: 1 1 420px;
    min-height: 380px;
    border: 1px solid #d9e5f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(6, 31, 58, 0.14);
    margin-bottom: 18px;
    background: #ffffff;
}

.home-hero-shell .carousel {
    height: 100%;
}

.home-hero-shell .carousel-inner {
    height: 100%;
}

.home-hero-shell .carousel-inner .item {
    height: 100%;
}

.home-hero-shell .carousel-inner .item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.home-hero-shell .carousel-control {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.home-hero-shell:hover .carousel-control {
    opacity: 0.9;
}

.home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    border: 1px solid #d7e5f3;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 8px 16px rgba(6, 31, 58, 0.08);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.home-intro-title {
    margin: 0;
    color: #123f6b;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.home-intro-sub {
    margin: 4px 0 0;
    color: #4f6478;
    font-size: 14px;
}

.home-intro-brand {
    max-width: 150px;
}

.home-services {
    margin-left: -8px;
    margin-right: -8px;
}

.home-services > [class*='col-'] {
    padding-left: 8px;
    padding-right: 8px;
}

.home-service-card {
    border: 1px solid #d7e4f3;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(6, 31, 58, 0.09);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(6, 31, 58, 0.15);
}

.home-service-head {
    padding: 12px 14px;
    background: linear-gradient(130deg, #0f355e 0%, #2f7fca 100%);
    color: #ffffff;
}

.home-service-head h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.home-service-head .glyphicon {
    margin-right: 6px;
}

.home-service-body {
    padding: 14px;
    color: #29425a;
    line-height: 1.7;
    font-size: 14px;
    flex: 1;
}

.home-service-media {
    border-top: 1px solid #dbe7f5;
    background: #f8fbff;
    padding: 8px;
}

.home-service-media img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.32s ease;
}

.home-service-card:hover .home-service-media img {
    transform: scale(1.03);
}

.home-soft {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.home-yellow {
    background: linear-gradient(180deg, #fffef5 0%, #fff8d7 100%);
}

.home-green {
    background: linear-gradient(180deg, #f5fff9 0%, #dff5e8 100%);
}

.home-note {
    margin-top: 8px;
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #2a5a87;
    background: #e7f1fc;
}

/* Subtle entrance and motion */
.home-hero-shell {
    animation: homeFadeUp 0.55s ease both;
}

.home-intro {
    animation: homeFadeUp 0.6s 0.08s ease both;
}

.home-intro-brand {
    animation: homeSoftFloat 4.2s ease-in-out infinite;
}

.home-impact-hero {
    animation: homeFadeUp 0.5s ease both;
}

.home-services > .col-sm-4:nth-child(1) .home-service-card {
    animation: homeFadeUp 0.55s 0.14s ease both;
}

.home-services > .col-sm-4:nth-child(2) .home-service-card {
    animation: homeFadeUp 0.55s 0.22s ease both;
}

.home-services > .col-sm-4:nth-child(3) .home-service-card {
    animation: homeFadeUp 0.55s 0.3s ease both;
}

.home-hero-shell .carousel-inner > .item.active img {
    animation: homeHeroZoom 7s ease both;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeSoftFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes homeHeroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-impact-hero,
    .home-hero-shell,
    .home-intro,
    .home-intro-brand,
    .home-services > .col-sm-4 .home-service-card,
    .home-hero-shell .carousel-inner > .item.active img {
        animation: none !important;
    }

    .home-service-card,
    .home-service-media img,
    .home-impact-cta {
        transition: none !important;
    }
}

@media (max-width: 991px) {
    .home-impact-title {
        font-size: 32px;
    }

    .home-impact-copy {
        padding: 22px 20px;
    }

    .home-hero-shell {
        min-height: 320px;
    }
}

@media (max-width: 767px) {
    .home-impact-title {
        font-size: 26px;
    }

    .home-impact-sub,
    .home-impact-mission {
        font-size: 14px;
    }

    .home-impact-copy {
        padding: 18px 14px;
    }

    .home-impact-cta {
        width: 100%;
    }

    .home-impact-metrics {
        grid-template-columns: 1fr;
    }

    .home-hero-shell {
        min-height: 280px;
    }

    .home-intro {
        padding: 12px;
    }

    .home-intro-title {
        font-size: 24px;
    }

    .home-intro-brand {
        max-width: 110px;
    }
}
