/* Homepage entry cards: retain section order and existing destinations. */
.home-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.home-business-section > div, .home-news-section > div { width: min(100% - 48px, 1200px); max-width: 1200px; padding-inline: 0; }
.home-business-section > div > div:first-child { margin-bottom: 32px; }
.home-page .home-business-card { position: relative; min-width: 0; padding: 28px; border: 1px solid var(--business-line) !important; border-top: 3px solid var(--business-accent) !important; border-radius: 8px; background: var(--business-soft); box-shadow: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.home-business-card[data-business="service"] { --business-accent: #a7663d; --business-dark: #533d30; --business-soft: #faf4ec; --business-line: #e6d5c5; }
.home-business-card[data-business="product"] { --business-accent: #087f83; --business-dark: #123347; --business-soft: #edf6f5; --business-line: #ccdfdf; }
.home-business-card[data-business="platform"] { --business-accent: #075985; --business-dark: #15394d; --business-soft: #eff4f8; --business-line: #d2e0e9; }
.home-business-top { color: var(--business-accent); font-size: .64rem; line-height: 1.8; font-weight: 600; letter-spacing: .09em; padding-right: 42px; min-height: 36px; }
.home-business-card > div:nth-child(2) { flex: 1; }
.home-business-icon { position: absolute; right: 26px; top: 25px; color: var(--business-accent); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
.home-business-icon svg { width: 25px; height: 25px; }
.home-business-card h3 { margin-top: 18px; color: var(--business-dark); font-size: 1.25rem; line-height: 1.55; letter-spacing: -.02em; }
.home-business-card p { margin-top: 14px; color: #526171; font-size: .875rem; line-height: 1.95; }
.home-page .home-business-link { border-top: 1px solid var(--business-line); margin-top: 28px; padding-top: 18px; min-height: 45px; color: var(--business-dark); justify-content: space-between; font-size: .8rem; }
.home-business-link span { margin-left: 16px; font-size: 1.15rem; font-weight: 400; }
.home-page .home-business-card:hover { border-color: var(--business-accent) !important; box-shadow: 0 10px 24px #2135470a; transform: translateY(-3px); }

.home-business-card:has(.home-business-background) { isolation: isolate; }
.home-business-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}
.home-business-background img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-business-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgb(10 22 35 / 80%), rgb(10 22 35 / 64%));
}
.home-business-card:has(.home-business-background) :is(.home-business-top, .home-business-icon, h3, p, .home-business-link) {
    color: #fff;
}
.home-page .home-business-card:has(.home-business-background) .home-business-link { border-top-color: rgb(255 255 255 / 42%); }
.home-business-card:has(.home-business-background):hover :is(h3, .home-business-link) { color: #fff !important; }

.home-news-section { margin-top: 14px; }
.home-news-section > div > div:first-child { margin-bottom: 28px; }
.home-news-card { display: flex; flex-direction: column; min-width: 0; padding: 26px 0 20px; border-top: 2px solid #bdcbd5; border-bottom: 1px solid #dae2e8; transition: border-color .2s; }
.home-news-card > div:first-child > div { color: #718294; font-size: .72rem; gap: 10px; }
.home-news-card > div:first-child > div > span:first-child { color: #075985; }
.home-news-card h3 { margin-top: 18px; min-height: 5.1em; font-size: 1.02rem; line-height: 1.7; font-weight: 600; -webkit-line-clamp: 3; color: #183345; }
.home-news-card > p { font-size: .83rem; line-height: 1.9; color: #64748b; margin-top: 16px; margin-bottom: 24px; min-height: 5.7em; -webkit-line-clamp: 3; }
.home-news-read { display: flex; align-items: center; justify-content: space-between; color: #075985; font-size: .75rem; font-weight: 600; margin-top: auto; padding-top: 8px; }
.home-news-read span { font-size: 1.2rem; transition: transform .2s; }
.home-news-card:hover { border-top-color: #075985; }
.home-news-card:hover .home-news-read span { transform: translate(2px, -2px); }
.home-business-card:focus-visible, .home-news-card:focus-visible { outline: 2px solid #075985; outline-offset: 5px; }
@media (min-width: 768px) and (max-width: 1023px) {
    .home-card-grid { gap: 20px; }
    .home-page .home-business-card { padding: 22px; }
    .home-business-top { font-size: .59rem; letter-spacing: .03em; }
    .home-business-icon { right: 20px; top: 22px; }
    .home-business-card h3 { font-size: 1.12rem; }
    .home-business-card p { font-size: .81rem; }
    .home-news-card h3 { min-height: 6.8em; -webkit-line-clamp: 4; }
}
@media (max-width: 767px) {
    .home-business-section > div, .home-news-section > div { width: calc(100% - 40px); }
    .home-card-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .home-page .home-business-card { padding: 24px; }
    .home-business-icon { right: 22px; top: 22px; }
    .home-business-card h3 { margin-top: 12px; }
    .home-business-card p { margin-top: 12px; }
    .home-page .home-business-link { margin-top: 22px; padding-top: 16px; }
    .home-news-section { margin-top: 24px; }
    .home-news-section .home-card-grid { gap: 32px; }
    .home-news-card { padding-block: 22px 18px; }
    .home-news-card h3, .home-news-card > p { min-height: 0; }
    .home-news-card > p { margin-top: 12px; margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page .home-business-card, .home-news-card, .home-news-read span { transition: none; transform: none !important; }
}
