@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --kps-ink: #0f2c33;
    --kps-slate: #2e4e57;
    --kps-mist: #e6f0ef;
    --kps-sand: #f6f0e7;
    --kps-gold: #d9a441;
    --kps-coral: #e26d5a;
    --kps-hover: #2f3e6b;
    --kps-white: #ffffff;
    --kps-shadow: 0 20px 50px rgba(15, 44, 51, 0.15);
    --kps-teal: #2f7b74;
    --kps-berry: #9a3d5c;
    --kps-olive: #7b8a3a;
    --kps-sky: #5fa3b7;
    --kps-plum: #7a4a6e;
}

nav{
    color: #fff;
}

.home-modern {
    font-family: 'Raleway', sans-serif;
    color: var(--kps-ink);
    background: var(--kps-sand) url('../images/site/Acorn_Bg.gif') repeat;
    border-radius: 32px;
    padding: 2.5rem;
}

.home-modern h1,
.home-modern h2,
.home-modern h3,
.home-modern h4 {
    font-family: 'Raleway', serif;
    letter-spacing: -0.02em;
}

.home-hero {
    position: relative;
    padding: 3.5rem;
    border-radius: 32px;
    background: linear-gradient(135deg, #34438d, #657fea);
    box-shadow: var(--kps-shadow);
    overflow: hidden;
    margin-bottom: 3rem;
}

.home-hero__content {
    position: relative;
    z-index: 2;
}

.home-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.75rem;
}

.home-hero__title {
    font-size: clamp(2.6rem, 3vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    color: var(--kps-white);
}

.home-hero__lead {
    font-size: 1.1rem;
    max-width: 32rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2rem;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.home-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-hero__chips span {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--kps-white);
    font-size: 0.85rem;
}

.home-hero__carousel {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
}

.home-hero__slide {
    min-height: 360px;
    background-size: cover;
    background-position: center;
}

.home-hero__carousel .carousel-indicators [data-bs-target] {
    background-color: rgba(255, 255, 255, 0.7);
}

.home-hero__carousel .carousel-control-prev-icon,
.home-hero__carousel .carousel-control-next-icon {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.home-hero__logo {
    position: absolute;
    width: 140px;
    right: 10%;
    bottom: 12%;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
    z-index: 3;
}

.home-grid {
    margin-bottom: 3rem;
}

.home-card {
    background: var(--kps-white);
    padding: 1.75rem;
    border-radius: 20px;
    border: 1px solid rgba(15, 44, 51, 0.1);
    height: 100%;
    box-shadow: 0 12px 24px rgba(15, 44, 51, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 44, 51, 0.18);
}

.home-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--kps-mist);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.home-card--gold {
    border-top: 6px solid var(--kps-gold);
}

.home-card--coral {
    border-top: 6px solid var(--kps-coral);
}

.home-card--teal {
    border-top: 6px solid #3a8b8f;
}

.home-card--navy {
    border-top: 6px solid #2f3e6b;
}

.home-card--slate {
    border-top: 6px solid var(--kps-slate);
}

.home-card--ink {
    border-top: 6px solid var(--kps-ink);
}

.home-card--berry {
    border-top: 6px solid var(--kps-berry);
}

.home-card--olive {
    border-top: 6px solid var(--kps-olive);
}

.home-card--sky {
    border-top: 6px solid var(--kps-sky);
}

.home-card--plum {
    border-top: 6px solid var(--kps-plum);
}

.home-card__link {
    font-weight: 600;
    color: var(--kps-ink);
    text-decoration: none;
    border-bottom: 2px solid rgba(217, 164, 65, 0.6);
}

.home-section {
    margin-bottom: 3rem;
}

.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.home-news-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
    background: var(--kps-white);
    border-radius: 20px;
    border: 1px solid rgba(15, 44, 51, 0.08);
    box-shadow: 0 18px 35px rgba(15, 44, 51, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-news-card + .home-news-card {
    margin-top: 1rem;
}

.home-news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(15, 44, 51, 0.16);
}

.home-news-card__media {
    width: 100%;
    height: 140px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
}

.home-news-card__meta {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--kps-coral);
    margin-bottom: 0.5rem;
}

.home-news-card__link {
    font-weight: 600;
    color: var(--kps-ink);
    text-decoration: none;
    border-bottom: 2px solid rgba(226, 109, 90, 0.5);
}

.home-welcome {
    background: linear-gradient(160deg, #f6f0e7, #fdfbf8);
    border-radius: 24px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 12px 30px rgba(46, 78, 87, 0.12);
}

.home-welcome__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.home-welcome__links a {
    color: var(--kps-ink);
    font-weight: 600;
    text-decoration: none;
}

.home-banner {
    padding: 2.5rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #34438d, #657fea);
    /*background: linear-gradient(135deg, rgba(226, 109, 90, 0.18), rgba(217, 164, 65, 0.2));*/
    margin-bottom: 3rem;
    color: var(--kps-white);
    box-shadow: var(--kps-shadow);
}

.home-links {
    margin-bottom: 1rem;
}

.home-link-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: var(--kps-white);
    border: 1px solid rgba(46, 78, 87, 0.12);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 30px rgba(15, 44, 51, 0.12);
}

.home-link-card a {
    color: var(--kps-coral);
    font-weight: 600;
    text-decoration: none;
}

.home-fade-in {
    animation: homeFadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.home-fade-in--delay-1 {
    animation-delay: 0.1s;
}

.home-fade-in--delay-2 {
    animation-delay: 0.2s;
}

.home-fade-in--delay-3 {
    animation-delay: 0.3s;
}

@keyframes homeFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .home-modern {
        padding: 2rem;
    }

    .home-hero {
        padding: 2.5rem;
    }

    .home-hero__slide {
        min-height: 300px;
    }

    .home-hero__logo {
        width: 110px;
        right: 6%;
        bottom: 10%;
    }

    .home-news-card {
        grid-template-columns: 1fr;
    }

    .home-news-card__media {
        height: 180px;
    }
}

@media (max-width: 575px) {
    .home-modern {
        padding: 1.25rem;
    }

    .home-hero {
        padding: 2rem;
    }

    .home-hero__actions {
        flex-direction: column;
    }
}

.btn-kps-coral {
    --bs-btn-bg: var(--kps-coral);
    --bs-btn-bg-hover: var(--kps-hover);
    --bs-btn-border-color: var(--kps-coral);
    --bs-btn-color: #fff;

    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

/* subtle hover / focus / active states */
.btn-kps-coral:hover,
.btn-kps-coral:focus {
    filter: brightness(0.95);
    color: var(--bs-btn-color);
    text-decoration: none;
    background-color: var(--bs-btn-bg-hover);
}

.btn-kps-coral:active,
.btn-kps-coral.active {
    filter: brightness(0.90);
}

/* accessible focus ring */
.btn-kps-coral:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(226, 109, 90, 0.25);
}

/* disabled */
.btn-kps-coral.disabled,
.btn-kps-coral:disabled {
    opacity: 0.65;
    pointer-events: none;
    filter: none;
}
