.home-v2 {
    --home-primary: #084786;
    --home-primary-hover: #215e94;
    --home-text: #212529;
    --home-muted: #6c757d;
    --home-surface: #f8f9fa;
    --home-border: #dee2e6;
    color: var(--home-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    padding: 32px 0 40px;
}

.home-v2 *,
.home-v2 *::before,
.home-v2 *::after {
    box-sizing: border-box;
}

.home-v2 a {
    color: var(--home-primary);
}

.home-v2 a:hover {
    color: var(--home-primary-hover);
}

.home-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 38px;
    align-items: start;
    margin-bottom: 34px;
}

.home-v2 h1 {
    margin: 0 0 26px;
    color: var(--home-text);
    font-size: clamp(1.85rem, 3vw, 2.3rem);
    font-weight: 700;
    line-height: 1.16;
}

.home-v2-search label {
    display: block;
    margin-bottom: 9px;
    font-size: 1rem;
    font-weight: 700;
}

.home-v2-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.home-v2-search input {
    width: 100%;
    min-height: 48px;
    padding: 10px 15px;
    color: var(--home-text);
    background: #fff;
    border: 1px solid var(--home-border);
    border-radius: 7px;
    box-shadow: none;
}

.home-v2-search input:focus {
    border-color: var(--home-primary);
    outline: 3px solid rgba(8, 71, 134, .16);
}

.home-v2-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    color: #fff !important;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none !important;
    background: var(--home-primary);
    border: 1px solid var(--home-primary);
    border-radius: 7px;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.home-v2-button:hover,
.home-v2-button:focus-visible {
    color: #fff !important;
    background: var(--home-primary-hover);
    border-color: var(--home-primary-hover);
}

.home-v2-button:active {
    transform: translateY(1px);
}

.home-v2-navigation-loading {
    position: relative !important;
    cursor: wait !important;
    pointer-events: none !important;
}

.home-v2-navigation-loading::before {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 0;
    width: 15px;
    height: 15px;
    margin-top: -7.5px;
    content: "";
    border: 2px solid rgba(8, 71, 134, .28);
    border-top-color: var(--home-primary);
    border-radius: 50%;
    animation: home-v2-loader-spin .72s linear infinite;
}

.home-v2-button.home-v2-navigation-loading {
    color: transparent !important;
}

.home-v2-button.home-v2-navigation-loading::before {
    left: 50%;
    margin-left: -7.5px;
    border-color: rgba(255, 255, 255, .42);
    border-top-color: #fff;
}

.home-v2-topic.home-v2-navigation-loading {
    color: transparent !important;
    background: var(--home-primary);
}

.home-v2-topic.home-v2-navigation-loading::before {
    left: 50%;
    margin-left: -7.5px;
    border-color: rgba(255, 255, 255, .42);
    border-top-color: #fff;
}

.home-v2-link.home-v2-navigation-loading {
    padding-left: 24px;
}

.home-v2-action-link.home-v2-navigation-loading::before {
    left: 8px;
}

.home-v2-action-link.home-v2-navigation-loading > .home-v2-action-icon {
    opacity: 0;
}

.home-v2-episode-card.home-v2-navigation-loading::before,
.home-v2-learning-card.home-v2-navigation-loading::before {
    top: 18px;
    right: 18px;
    left: auto;
    width: 18px;
    height: 18px;
    margin-top: 0;
    border-color: rgba(255, 255, 255, .48);
    border-top-color: #fff;
    box-shadow: 0 0 0 5px rgba(8, 71, 134, .9);
}

.home-v2-navigation-loading:not(.home-v2-button):not(.home-v2-topic):not(.home-v2-link):not(.home-v2-action-link):not(.home-v2-episode-card):not(.home-v2-learning-card) {
    padding-left: 24px;
}

@keyframes home-v2-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.home-v2-live {
    padding: 21px 22px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 8px;
}

.home-v2-live h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
}

.home-v2-live p {
    margin: 0 0 16px;
}

.home-v2-live .home-v2-button {
    margin-bottom: 17px;
}

.home-v2-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 550;
    text-decoration: none;
}

.home-v2-link:hover {
    text-decoration: underline;
}

.home-v2-arrow {
    width: 13px;
    height: 13px;
    object-fit: contain;
}

.home-v2-section {
    margin-top: 33px;
}

.home-v2-section-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.home-v2-section h2,
.home-v2-section-heading h2 {
    margin: 0;
    color: var(--home-text);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-v2-episodes[aria-busy="true"] {
    min-height: 258px;
}

.home-v2-loading,
.home-v2-error {
    margin: 0;
    padding: 22px;
    color: var(--home-muted);
    text-align: center;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 8px;
}

.home-v2-episodes .row {
    --bs-gutter-x: .65rem;
    --bs-gutter-y: .65rem;
}

.home-v2-episode-card {
    height: 100%;
    overflow: hidden;
    color: var(--home-text) !important;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid var(--home-border) !important;
    border-radius: 8px;
    box-shadow: none !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-v2-episode-card:hover,
.home-v2-episode-card:focus-visible {
    color: var(--home-text) !important;
    border-color: rgba(8, 71, 134, .46) !important;
    box-shadow: 0 8px 22px rgba(19, 51, 82, .1) !important;
    transform: translateY(-2px);
}

.home-v2-episode-card img {
    width: 100%;
    height: 162px;
    object-fit: cover;
}

.home-v2-episode-body {
    display: flex;
    min-height: 125px;
    flex-direction: column;
    padding: 12px 13px 13px;
}

.home-v2-episode-program {
    margin-bottom: 7px;
    color: var(--home-primary);
    font-size: .86rem;
    font-weight: 650;
}

.home-v2-episode-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 13px;
    color: var(--home-text);
    font-size: 1rem;
    font-weight: 550;
    line-height: 1.34;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-v2-episode-date {
    margin-top: auto;
    color: var(--home-muted);
    font-size: .84rem;
}

.home-v2-topics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.home-v2-topic {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    color: var(--home-primary) !important;
    font-weight: 550;
    text-align: center;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid var(--home-primary);
    border-radius: 6px;
    transition: color .16s ease, background-color .16s ease;
}

.home-v2-topic:hover,
.home-v2-topic:focus-visible {
    color: #fff !important;
    background: var(--home-primary);
}

.home-v2-programs,
.home-v2-learning {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-v2-program,
.home-v2-learning-card {
    display: flex;
    min-height: 318px;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    color: var(--home-text) !important;
    text-decoration: none !important;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 8px;
    transition: border-color .16s ease, transform .16s ease;
}

.home-v2-program:hover,
.home-v2-program:focus-visible,
.home-v2-learning-card:hover,
.home-v2-learning-card:focus-visible {
    color: var(--home-text) !important;
    border-color: rgba(8, 71, 134, .46);
    transform: translateY(-2px);
}

.home-v2-program-cover,
.home-v2-learning-cover {
    display: block;
    width: 100%;
    height: 176px;
    flex: 0 0 auto;
    object-fit: cover;
    background: #eef2f5;
}

.home-v2-program-body,
.home-v2-learning-body {
    display: flex;
    min-height: 141px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px 20px 19px;
}

.home-v2-program h3,
.home-v2-learning-card h3 {
    margin: 0 0 11px;
    color: var(--home-primary);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-v2-program p,
.home-v2-learning-card p {
    margin: 0 0 16px;
    line-height: 1.45;
}

.home-v2-program-body .home-v2-link,
.home-v2-learning-body .home-v2-link {
    margin-top: auto;
}

.home-v2-learning-card {
    min-height: 346px;
}

.home-v2-learning-cover {
    height: auto;
    aspect-ratio: 4 / 3;
}

.home-v2-learning-body h3 {
    margin-bottom: 5px;
    color: var(--home-text);
    font-size: 1.05rem;
}

.home-v2-learning-body p {
    margin-bottom: 13px;
    font-size: .92rem;
    line-height: 1.35;
}

.home-v2-about {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    margin-top: 34px;
    background: #f5f8fc;
    border: 1px solid var(--home-border);
    border-radius: 8px;
}

.home-v2-about-main,
.home-v2-about-actions {
    padding: 22px 25px;
}

.home-v2-about-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
}

.home-v2-about-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: var(--home-primary);
}

.home-v2-about-icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.home-v2-about h2 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
}

.home-v2-about p {
    margin: 0 0 12px;
    line-height: 1.45;
}

.home-v2-about-actions {
    display: grid;
    gap: 17px;
    align-content: center;
    border-left: 1px solid var(--home-border);
}

.home-v2-action-link {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    font-weight: 550;
    text-decoration: none;
}

.home-v2-action-link:hover {
    text-decoration: underline;
}

.home-v2-action-icon {
    width: 31px;
    height: 31px;
    object-fit: contain;
}

.home-v2 :focus-visible {
    outline: 3px solid rgba(8, 71, 134, .28);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .home-v2 {
        padding-top: 25px;
    }

    .home-v2-hero {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 24px;
    }

    .home-v2-topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-v2 {
        padding: 22px 0 32px;
    }

    .home-v2-hero,
    .home-v2-about {
        grid-template-columns: 1fr;
    }

    .home-v2 h1 {
        margin-bottom: 20px;
    }

    .home-v2-live {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 16px;
        align-items: center;
    }

    .home-v2-live p,
    .home-v2-live h2 {
        grid-column: 1;
    }

    .home-v2-live .home-v2-button {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .home-v2-live .home-v2-link {
        grid-column: 1 / -1;
        margin-top: 14px;
    }

    .home-v2-programs,
    .home-v2-learning {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-v2-program {
        min-height: 300px;
    }

    .home-v2-program-cover,
    .home-v2-learning-cover {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .home-v2-about-actions {
        border-top: 1px solid var(--home-border);
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .home-v2-search-row {
        grid-template-columns: 1fr;
    }

    .home-v2-search-row .home-v2-button {
        width: 100%;
    }

    .home-v2-live {
        display: block;
    }

    .home-v2-live .home-v2-button {
        width: 100%;
        margin-bottom: 15px;
    }

    .home-v2-section {
        margin-top: 29px;
    }

    .home-v2-section-heading {
        align-items: flex-start;
    }

    .home-v2-section-heading .home-v2-link {
        flex: 0 0 auto;
        font-size: .9rem;
    }

    .home-v2-episodes .row > div {
        width: 100%;
    }

    .home-v2-episode-card {
        display: grid !important;
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .home-v2-episode-card img {
        height: 100%;
        min-height: 154px;
        border-radius: 7px 0 0 7px;
    }

    .home-v2-episode-body {
        min-height: 154px;
        padding: 11px 12px;
    }

    .home-v2-episode-title {
        margin-bottom: 8px;
        font-size: .94rem;
        -webkit-line-clamp: 3;
    }

    .home-v2-episode-program,
    .home-v2-episode-date {
        font-size: .78rem;
    }

    .home-v2-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .home-v2-topic {
        min-height: 44px;
        font-size: .9rem;
    }

    .home-v2-about-main,
    .home-v2-about-actions {
        padding: 19px;
    }

    .home-v2-about-main {
        grid-template-columns: 39px minmax(0, 1fr);
        gap: 13px;
    }

    .home-v2-about-icon {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-v2 *,
    .home-v2 *::before,
    .home-v2 *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .home-v2-navigation-loading::before {
        animation: none;
    }
}
