.young-news {
    width: 100%;
    min-height: 100%;
}

.young-news__container {
    box-sizing: border-box;
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    padding: 24px 16px 96px;
}

.young-news__header {
    min-height: 40px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
}

.young-news__title {
    margin: 0;
    color: var(--news-title-color);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;

    padding-top: 20px;
}

.young-news__subtitle {
    margin: 0;
    color: var(--news-subtitle-color);
    font-size: 14px;
    line-height: 1.4;
}

.young-news__section+.young-news__section {
    margin-top: 32px;
}

.young-news__section-title {
    margin: 0 0 12px;
    color: var(--news-section-title-color);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.young-news__empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--news-empty-color);
    font-size: 14px;
    line-height: 1.5;
}

.young-news__grid {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 4px;
}

.young-news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.young-news-card:hover,
.young-news-card:focus-visible {
    background: var(--news-card-hover-background-color);
    box-shadow: var(--news-card-hover-shadow);
}

.young-news-card:active {
    box-shadow: var(--news-card-active-shadow);
}

.young-news-card__hover-layer {
    position: absolute;
    inset: 0;
    background: var(--news-card-hover-layer-background);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.young-news-card:hover .young-news-card__hover-layer,
.young-news-card:focus-visible .young-news-card__hover-layer {
    opacity: 1;
}

.young-news-card__logo {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    padding: 12px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: var(--news-card-logo-background-color);
    box-shadow: var(--news-card-logo-shadow);
}

.young-news-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.young-news-card__name {
    position: relative;
    z-index: 1;
    color: var(--news-card-name-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.young-news-card__category {
    position: relative;
    z-index: 1;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--news-card-category-background-color);
    color: var(--news-card-category-color);
    font-size: 12px;
    line-height: 1.4;
}






.young-news__tabs-container {
    margin: 20px 0;
}

.young-news__tabs-nav {
    background-color: var(--news-tabs-nav);
    padding: 4px 4px 0px;
    border-radius: 16px;
    max-width: 440px;
    height: 48px;
    width: 100%;
    display: flex;
    position: relative;
}

.young-news__tab-btn {
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    max-width: 216px;
    width: 100%;
    height: 40px;
    font-weight: 500;
    font-size: 14px;
    color: var(--news-tab-btn-text);
    transition: 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;

}

.young-news__tab-btn.active {
    /* box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    background-color: #fff; */
    color: var(--news-tab-btn-text-active);
}

.young-news__tab-indicator {
    position: absolute;
    box-shadow: 0 1px 2px -1px rgba(0, 0, 0, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    top: 4px;
    left: 4px;
    height: 40px;
    background-color: var(--news-tab-indicator-bg-color-and-tab-desc);
    border-radius: 14px;
    transition: 0.3s;
    z-index: 1;
}

.young-news__tab-panel {
    display: none;
    margin-top: 40px;
}

.young-news__tab-panel.active {
    display: block;
}

/* .young-news__tab-btn.active~.young-news__tab-indicator {
    left: 4px;
    width: 144px;
} */

.young-news__tab-img {
    border-radius: 32px;
    margin-bottom: 24px;
    object-fit: cover;
    width: 100%;
    height: 320px;
}

.young-news__tab-desc {
    border: 1px solid var(--news-tab-desc-border-color);
    border-radius: 32px;
    padding: 31px 33px;
    background-color: var(--news-tab-indicator-bg-color-and-tab-desc);
}

.young-news__tab-desc p {
    padding-bottom: 16px;
    font-weight: 400;
    font-size: 16px;
    color: var(--news-tab-desc-text-color);
    line-height: 163%;
}

.young-news__tab-desc p:last-child {
    padding-bottom: 0;
}

.young-news__tab-panel-title {
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 24px;
    color: var(--news-title-color);
}

.young-news__tab-panel-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.young-news__tab-panel-card {
    border: 1px solid var(--news-tab-panel-card-border-color);
    border-radius: 32px;
    background-color: var(--news-tab-panel-card-bg-color);
    position: relative;
    flex: 0 0 calc(25% - 18px);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.young-news__tab-panel-card:hover {
    box-shadow: 0 10px 25px -5px var(--news-tab-panel-card-box-shadow-hover), 0 8px 10px -6px var(--news-tab-panel-card-box-shadow-hover);
}

.young-news__tab-panel-link {
    text-decoration: none;
    height: 100%;
}

.young-news__tab-panel-block-img {
    width: 100%;
}

.young-news__tab-panel-block-img::before {
    content: '';
    border-radius: 32px 32px 0 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    position: absolute;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 100%);
}

.young-news__tab-panel-img {
    border-radius: 32px 32px 0 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}

.young-news__tab-panel-category {
    background-color: var(--news-tab-panel-category-bg-color);
    border: 1px solid var(--news-tab-panel-category-border-color);
    border-radius: 32px;
    padding: 8px 12px;
    height: 30px;
    position: absolute;
    top: 16px;
    left: 16px;
}

.young-news__tab-panel-category-text {
    font-weight: 500;
    font-size: 12px;
    color: var(--news-tab-panel-category-text-color);
    text-align: center;
}

.young-news__tab-panel-info {
    padding: 20px;
}

.young-news__tab-panel-info-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: var(--news-title-color);
    padding-bottom: 8px;
}

.young-news__tab-panel-info-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--news-tab-panel-card-info-desc-color);
    padding-bottom: 16px;
}

.young-news__tab-panel-info-address,
.young-news__tab-panel-info-time {
    padding-bottom: 10px;
}

.young-news__tab-panel-info-address,
.young-news__tab-panel-info-time,
.young-news__tab-panel-info-feature {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: var(--news-tab-panel-card-info-text-color);
    display: flex;
    gap: 6px;
}

.young-news__tab-panel-info-feature svg {
    flex-shrink: 0;
}

.young-news__tab-panel-btn {
    border-top: 1px solid var(--news-tab-panel-card-btn-border-color);
    padding: 20px 0;
    margin: auto 20px 0px 20px;
}

.young-news__tab-panel-btn-link {
    display: flex;
    gap: 6px;
    justify-content: center;
    border-radius: 14px;
    text-align: center;
    padding-top: 10px;
    height: 39px;
    background-color: var(--news-tab-panel-card-btn-link-bg-color);
    font-weight: 500;
    font-size: 14px;
    color: var(--news-tab-panel-card-btn-link-text-color);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.young-news__tab-panel-btn-link:hover {
    background-color: var(--news-tab-panel-card-btn-link-bg-color-hover);
    color: var(--news-tab-panel-card-btn-link-text-color-hover);
    transform: scale(1.03);
}

.young-news__tab-panel-btn-link:active {
    transform: scale(0.98);
}

.young-news__tab-panel-btn-show-more-block {
    width: 100%;
    margin: 0 auto;
    display: flex;
}

.young-news__tab-panel-btn-show-more {
    margin-top: 32px;
    margin: 0 auto;
    border-radius: 16px;
    width: 210px;
    height: 48px;
    border-color: transparent;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    background-color: var(--news-tab-panel-btn-show-more-bg-color);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--news-tab-panel-btn-show-more-text-color);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.young-news__tab-panel-btn-show-more:hover {
    transform: scale(1.07);
}

.young-news__tab-panel-btn-show-more:active {
    transform: scale(0.98);
}

@media (max-width: 1200px) {
    .young-news__tab-panel-card {
        flex: 0 0 calc(33% - 13px);
    }
}

@media (max-width: 1100px) {
    .young-news__tab-panel-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 767px) {
    .young-news__tab-panel-card {
        flex: 1 1 100%;
    }

    .young-news__tab-panel-btn-show-more {
        width: 100%;
    }
}



@media (min-width: 600px) {
    .young-news__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .young-news__container {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}


@media (max-width: 767px) {
    .young-news-card__logo {
        width: 84px;
        height: 84px;
        margin-bottom: 12px;
        padding: 11px;
        border-radius: 14px;
        flex: 0 0 56px;
    }

    .young-news-card__name {
        font-size: 14px;
        line-height: 1.35;
    }

    .young-news-card__category {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.3;
    }
}

@media (max-width: 1023px) {
    .young-news__container {
        overflow-x: clip;
    }

    .young-news-card:hover,
    .young-news-card:focus-visible {
        box-shadow: var(--news-card-hover-shadow-compact);
    }

    .young-news-card:active {
        box-shadow: var(--news-card-active-shadow-compact);
    }
}

@media (min-width: 1024px) {
    .young-news__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}