/* Modern news panel — team / home / championship / news index (dark + light, RTL/LTR) */

.home-news.team-page-news {
    background: #151825;
    border: 1px solid #1e2235;
    border-radius: 16px;
    padding: 18px 16px 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    height: auto;
    min-height: 0;
    display: block;
}

/* Homepage: don't stretch news column to match matches sidebar height */
.championships-section .main-row > .col-lg-7 {
    align-self: flex-start;
}

.championships-section .dynamic-content-area-wrap:has(.team-page-news) {
    min-height: 0;
    height: auto;
}

.dynamic-content-area-wrap:has(.team-page-news):not(:has(.ajax-details-wrapper)) {
    min-height: 0;
    height: auto;
}

.home-news.team-page-news .inner-section-title,
.home-news.team-page-news h1.inner-section-title {
    margin: 0 0 16px;
    padding: 0 0 12px;
    min-height: 0;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    text-align: right;
    border-bottom: 1px solid #1e2235;
    letter-spacing: 0.01em;
}

/* Hero / featured article */
.home-news.team-page-news .big-news-item {
    margin-bottom: 14px;
}

.home-news.team-page-news .big-news-item .news-item {
    display: block;
    padding: 0;
    margin: 0;
    background: #191d2d;
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-news.team-page-news .big-news-item .news-item:hover {
    background: #1e2438;
    border-color: rgba(57, 219, 191, 0.2);
}

.home-news.team-page-news .big-news-item .news-item > .row {
    margin: 0;
}

.home-news.team-page-news .big-news-item .news-item > .row > [class*="col-"] {
    padding: 0;
}

.home-news.team-page-news .big-news-item .news-img {
    margin: 0;
    border-radius: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #12151f;
    height: 100%;
    min-height: 180px;
}

.home-news.team-page-news .big-news-item .news-img img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.home-news.team-page-news .big-news-item .news-item:hover .news-img img {
    transform: scale(1.02);
}

.home-news.team-page-news .big-news-item .big-news-content {
    padding: 16px 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-news.team-page-news .big-news-item .news-title,
.home-news.team-page-news .big-news-item h2.news-title,
.home-news.team-page-news .big-news-item h3.news-title {
    margin: 0 0 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    color: #fff;
    transition: color 0.2s ease;
}

.home-news.team-page-news .big-news-item .news-item:hover .news-title {
    color: #39dbbf;
}

.home-news.team-page-news .big-news-item .news-date {
    padding: 0;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 600;
    color: #707488;
    gap: 6px;
}

.home-news.team-page-news .big-news-item .news-date svg {
    margin-left: 0;
    opacity: 0.8;
}

.home-news.team-page-news .big-news-item p,
.home-news.team-page-news .big-news-item .big-news-lead {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: #bfc3d4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured news grid */
.home-news.team-page-news .news-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 16px;
}

.home-news.team-page-news .news-row > [class*="col-"] {
    padding: 0;
    width: 100%;
    max-width: 100%;
    flex: none;
}

.home-news.team-page-news .news-row .news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
    padding: 0;
    background: #191d2d;
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.home-news.team-page-news .news-row .news-item:hover {
    background: #1e2438;
    border-color: rgba(57, 219, 191, 0.2);
    transform: translateY(-1px);
}

.home-news.team-page-news .news-row .news-item .news-img {
    margin: 0;
    border-radius: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #12151f;
}

.home-news.team-page-news .news-row .news-item .news-img img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.home-news.team-page-news .news-row .news-item:hover .news-img img {
    transform: scale(1.03);
}

.home-news.team-page-news .news-row .news-item h2.news-title,
.home-news.team-page-news .news-row .news-item h3.news-title {
    margin: 0;
    padding: 12px 12px 8px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #d8dbe8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.home-news.team-page-news .news-row .news-item:hover h2.news-title,
.home-news.team-page-news .news-row .news-item:hover h3.news-title {
    color: #39dbbf;
}

.home-news.team-page-news .news-row .news-item .news-date {
    margin-top: auto;
    padding: 0 12px 12px;
    font-size: 10px;
    font-weight: 600;
    color: #707488;
    gap: 6px;
}

.home-news.team-page-news .news-row .news-item .news-date svg {
    flex-shrink: 0;
    margin-left: 0;
    opacity: 0.8;
}

/* Mini news list */
.home-news.team-page-news .mini-news-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-news.team-page-news .mini-news-items #main_news_list,
.home-news.team-page-news .mini-news-items #news_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-news.team-page-news .mini-news-items .news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    padding: 10px 12px;
    background: #191d2d;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-news.team-page-news .mini-news-items .news-item:hover {
    background: #1e2438;
    border-color: rgba(57, 219, 191, 0.15);
}

.home-news.team-page-news .mini-news-items .news-item .news-img {
    flex: 0 0 88px;
    width: 88px;
    height: 62px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #12151f;
}

.home-news.team-page-news .mini-news-items .news-item .news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.home-news.team-page-news .mini-news-items .news-item .mini-news-content {
    flex: 1 1 0;
    min-width: 0;
}

.home-news.team-page-news .mini-news-items .news-item h2.news-title,
.home-news.team-page-news .mini-news-items .news-item h3.news-title {
    margin: 0 0 6px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #d8dbe8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.home-news.team-page-news .mini-news-items .news-item:hover h2.news-title,
.home-news.team-page-news .mini-news-items .news-item:hover h3.news-title {
    color: #39dbbf;
}

.home-news.team-page-news .mini-news-items .news-item .news-date,
.home-news.team-page-news .mini-news-items .news-item .news-item-excerpt {
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: #707488;
}

.home-news.team-page-news .mini-news-items .news-item .news-date span,
.home-news.team-page-news .mini-news-items .news-item .news-item-excerpt span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
}

/* Loader & show more */
.home-news.team-page-news .inline-loader,
.home-news.team-page-news + .inner-match-tab-content .inline-loader,
.home-news.team-page-news .inner-match-tab-content .inline-loader {
    padding: 12px 0;
    text-align: center;
}

.home-news.team-page-news .inline-loader:empty,
.home-news.team-page-news #loader_news:empty,
.home-news.team-page-news #main_news_loader_news:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
}

.home-news.team-page-news > .inner-match-tab-content.news,
.home-news.team-page-news > .inner-match-tab-content {
    margin-top: 12px;
    padding: 0;
    min-height: 0 !important;
    height: auto;
}

.home-news.team-page-news .show-more-matches.view-all-button,
.home-news.team-page-news .inner-match-tab-content .show-more-matches.view-all-button,
.home-news.team-page-news + .inner-match-tab-content .show-more-matches.view-all-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    margin-top: 0;
    padding: 0 16px;
    background: transparent;
    border: 1px dashed #2a3048;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #707488;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-news.team-page-news .show-more-matches.view-all-button:hover,
.home-news.team-page-news .inner-match-tab-content .show-more-matches.view-all-button:hover {
    color: #39dbbf;
    border-color: rgba(57, 219, 191, 0.4);
    background: rgba(57, 219, 191, 0.05);
}

/* Empty state */
.home-news.team-page-news .search-no-results-wrap {
    padding: 32px 16px;
    margin-bottom: 12px;
    background: #191d2d;
    border: 1px dashed #2a3048;
    border-radius: 12px;
}

.home-news.team-page-news .search-no-results-wrap h3 {
    margin-bottom: 0;
    font-size: 13px;
    color: #707488;
}

/* News page — championships sidebar */
.inner-page-content .championship-wrap.hidden-champs {
    background: #151825;
    border: 1px solid #1e2235;
    border-radius: 16px;
    padding: 16px 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.inner-page-content .championship-wrap.hidden-champs .section-title h2 {
    margin: 0 0 12px;
    padding: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    border-bottom: 1px solid #1e2235;
}

.inner-page-content .championship-wrap.hidden-champs .matches-wrapper {
    margin-bottom: 6px;
}

.inner-page-content .championship-wrap.hidden-champs .matches-wrapper:last-child {
    margin-bottom: 0;
}

.inner-page-content .championship-wrap.hidden-champs .matches-wrapper .header {
    margin: 0;
    padding: 10px 12px;
    background: #191d2d;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.inner-page-content .championship-wrap.hidden-champs .matches-wrapper .header:hover {
    background: #1e2438;
    border-color: rgba(57, 219, 191, 0.15);
}

.inner-page-content .championship-wrap.hidden-champs .matches-wrapper .champ-title {
    color: #d8dbe8;
    font-size: 12px;
    font-weight: 700;
}

.inner-page-content .championship-wrap.hidden-champs .matches-wrapper .header:hover .champ-title {
    color: #39dbbf;
}

/* ── Light mode ── */
html.light .home-news.team-page-news {
    background: #fff;
    border-color: #e8ebf2;
    box-shadow: 0 2px 16px rgba(19, 21, 33, 0.06);
}

html.light .home-news.team-page-news .inner-section-title,
html.light .home-news.team-page-news h1.inner-section-title {
    color: #131521;
    border-bottom-color: #eef1f8;
}

html.light .home-news.team-page-news .big-news-item .news-item,
html.light .home-news.team-page-news .news-row .news-item,
html.light .home-news.team-page-news .mini-news-items .news-item {
    background: #f4f6fb;
}

html.light .home-news.team-page-news .big-news-item .news-item:hover,
html.light .home-news.team-page-news .news-row .news-item:hover,
html.light .home-news.team-page-news .mini-news-items .news-item:hover {
    background: #eef1f8;
    border-color: rgba(57, 219, 191, 0.25);
}

html.light .home-news.team-page-news .big-news-item .news-img,
html.light .home-news.team-page-news .news-row .news-item .news-img,
html.light .home-news.team-page-news .mini-news-items .news-item .news-img {
    background: #e8ebf2;
}

html.light .home-news.team-page-news .big-news-item .news-title {
    color: #131521;
}

html.light .home-news.team-page-news .big-news-item p,
html.light .home-news.team-page-news .big-news-item .big-news-lead {
    color: #505668;
}

html.light .home-news.team-page-news .news-row .news-item h2.news-title,
html.light .home-news.team-page-news .news-row .news-item h3.news-title,
html.light .home-news.team-page-news .mini-news-items .news-item h2.news-title,
html.light .home-news.team-page-news .mini-news-items .news-item h3.news-title {
    color: #2a3142;
}

html.light .home-news.team-page-news .show-more-matches.view-all-button {
    border-color: #d8dce8;
    color: #505668;
}

html.light .home-news.team-page-news .search-no-results-wrap {
    background: #f4f6fb;
    border-color: #d8dce8;
}

html.light .inner-page-content .championship-wrap.hidden-champs {
    background: #fff;
    border-color: #e8ebf2;
    box-shadow: 0 2px 16px rgba(19, 21, 33, 0.06);
}

html.light .inner-page-content .championship-wrap.hidden-champs .section-title h2 {
    color: #131521;
    border-bottom-color: #eef1f8;
}

html.light .inner-page-content .championship-wrap.hidden-champs .matches-wrapper .header {
    background: #f4f6fb;
}

html.light .inner-page-content .championship-wrap.hidden-champs .matches-wrapper .header:hover {
    background: #eef1f8;
}

html.light .inner-page-content .championship-wrap.hidden-champs .matches-wrapper .champ-title {
    color: #2a3142;
}

/* ── LTR ── */
html[dir="ltr"] .home-news.team-page-news .inner-section-title,
html[dir="ltr"] .home-news.team-page-news h1.inner-section-title {
    text-align: left;
}

html[dir="ltr"] .home-news.team-page-news .mini-news-items .news-item .news-img {
    margin: 0 !important;
}

html[dir="ltr"] .home-news.team-page-news .big-news-item .news-img,
html[dir="ltr"] .home-news.team-page-news .big-news-item .news-img img {
    border-radius: 12px 0 0 12px;
}

html[dir="ltr"] .home-news.team-page-news .big-news-item .big-news-content {
    padding-left: 18px;
    padding-right: 0;
}

html[dir="ltr"] .home-news.team-page-news .news-row .news-item .news-date svg,
html[dir="ltr"] .home-news.team-page-news .big-news-item .news-date svg {
    margin-right: 6px;
    margin-left: 0;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .home-news.team-page-news {
        padding: 14px 12px 12px;
        border-radius: 12px;
    }

    .home-news.team-page-news .big-news-item .big-news-content {
        padding: 14px;
    }

    .home-news.team-page-news .mini-news-items .news-item .news-img {
        flex: 0 0 72px;
        width: 72px;
        height: 52px;
    }

    .home-news.team-page-news .mini-news-items .news-item h3.news-title {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .home-news.team-page-news .news-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-news.team-page-news .big-news-item .news-img {
        min-height: 160px;
    }
}
