/* V2 News. Same article/horoscope/podcast layout from /styles/_oglasi.css.
   Only loaded by /v2/News.aspx; the V2 master and homepage CSS remain unchanged. */
.v2-news-page.container-lg {
    max-width: 1150px;
    font-size: 13px;
    position: relative;
    isolation: isolate;
    margin-top: 26px;
    margin-bottom: 90px;
}
.v2-news-page .home-bg {
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: -27px;
    width: 100vw;
    height: 700px;
    transform: translateX(-50%);
    z-index: -1;
    background-image:
        linear-gradient(180deg, rgba(255,255,255,.01), #fff 85%),
        radial-gradient(ellipse at top left, rgba(13,110,253,.5), transparent 50%),
        radial-gradient(ellipse at top right, rgba(112,44,249,.5), transparent 50%),
        radial-gradient(ellipse at center right, rgba(255,228,132,.5), transparent 50%),
        radial-gradient(ellipse at center left, rgba(214,51,132,.5), transparent 50%);
    background-size: 400% 100%;
    animation: v2NewsGradientMove 10s ease infinite;
}
@keyframes v2NewsGradientMove {
    0%,100% { background-position:0% 50%; }
    50% { background-position:100% 50%; }
}
@media (max-width: 767.98px) {
    .v2-news-page.container-lg { margin-top: 18px; margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
    .v2-news-page .home-bg { animation: none; }
}

/* Existing News-specific declarations copied below from the old stylesheet. */

.horoskop-main {
    margin: 16px 0;
}
.horoskop-main .holder {
    background-color: white;
    border-radius: 8px;
}
.horoskop-main img:hover, .horoskop-main img.active {
    opacity: 1;
    background-color: #42009536;
}
.horoskop-main img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #420095;
    padding-top: 8px;
    cursor: pointer;
    mix-blend-mode: multiply;
    opacity: .8;
}
.article-card,
.main-article-wrapper,
.article-category,
.article-author,
.article-date,
.main-article-author,
.main-article-date,
.main-article-subtitle {
    font-family: 'Roboto Condensed', sans-serif;
}

.article-title,
.main-article-title,
.section-title {
    font-family: 'Playfair Display', serif;
}
.article-card {
    margin-bottom: 8px;
}
.section-title {
    font-size: 1.9rem;
    border-bottom: 1px solid black;
}

/* Shared wrapper */
.article-link-wrapper {
    position: relative;
    display: block;
}

/* Images */
.article-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 0;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

.main-article-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    transition: 0.3s ease;
}

.article-link-wrapper:hover .article-thumbnail,
.main-article-hover-group:hover .main-article-image {
    filter: brightness(75%);
}

/* Titles (regular full articles) */
.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: block;
}

    .article-title a {
        color: #000;
        text-decoration: none;
        transition: color 0.3s;
    }

.article-link-wrapper:hover .article-title a {
    text-decoration: underline;
    color: #5d22a7;
}

.small-title {
    all: unset;
    font-size: 0.95rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.4;
    max-height: 2.8em; /* ~2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    position: relative;
    margin-bottom: 10px;
}

    /* Fade only on end of second line */
    .small-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        right: 0;
        height: 1.4em; /* One line height */
        width: 30%;
        background: linear-gradient(to right, transparent, white); /* match background */
        pointer-events: none;
    }

    /* Anchor styling */
    .small-title a {
        color: #000;
        text-decoration: none;
        transition: color 0.3s;
    }

        .small-title a:hover {
            color: #5d22a7;
            text-decoration: underline;
        }



/* Category */
.article-category, .article-category:hover {
    font-weight: 700;
    font-size: 0.85rem;
    color: #742dcd;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.main-article-category, .main-article-category:hover {
    font-weight: 700;
    font-size: 0.85rem;
    color: #742dcd;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Author and date */
.article-author,
.main-article-author {
    font-weight: bold;
    font-size: 0.9rem;
    color: #000;
    text-transform: uppercase;
}

.article-date,
.main-article-date, .main-article-date a {
    font-size: 0.85rem;
    color: #7c7f83;
    margin-top: 3px;
}

/* Short article separator */
.article-separator {
    border-top: 1px solid #000;
    margin-bottom: 10px;
}

/* Main article layout */
.main-article-wrapper {
    background-color: #f2f1fd;
    border-radius: 5px;
    padding: 2rem;
}

.main-article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.main-article-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    display: block;
}

    .main-article-title a {
        color: #000;
        text-decoration: none;
        transition: color 0.3s;
    }

.main-article-hover-group:hover .main-article-title a {
    color: #5d22a7;
    text-decoration: underline;
}

.main-article-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

.podcast-wrapper {
    background-color: #420095;
    color: #eee;
}

    .podcast-wrapper a,
    .podcast-wrapper .article-category,
    .podcast-wrapper .article-date,
    .podcast-wrapper .main-article-date,
    .podcast-wrapper .main-article-subtitle {
        color: #eee;
    }

    .podcast-wrapper .article-title a,
    .podcast-wrapper .main-article-title a {
        color: #fff;
    }

        .podcast-wrapper .article-title a:hover,
        .podcast-wrapper .main-article-title a:hover,
        .podcast-wrapper .article-link-wrapper:hover .article-title a,
        .podcast-wrapper .main-article-hover-group:hover .main-article-title a {
            color: #d1b3ff;
            text-decoration: underline;
        }

    .podcast-wrapper .article-separator {
        border-color: #fff;
    }

    .podcast-wrapper .main-article-wrapper {
        background-color: transparent;
    }

    .podcast-wrapper .section-title {
        border-color: #fff;
    }

    /* ✅ Apply ONLY to small articles in podcast */
    .podcast-wrapper .article-title {
        max-height: 2.8em;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        position: relative;
    }

        /* ✅ Fade mask ONLY for small articles */
        .podcast-wrapper .article-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            height: 1em;
            width: 30%;
            background: linear-gradient(to right, transparent, #420095);
        }

.tags-wrapper {
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap; /* Force one line */
    overflow: hidden; /* Hide overflow */
    position: relative;
}

    /* Section label "Популарно:" */
    .tags-wrapper p {
        font-family: 'Playfair Display', serif;
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
        margin-right: 1rem;
        white-space: nowrap;
    }

    /* Tag badges */
    .tags-wrapper .badge {
        background-color: #420095;
        color: #fff;
        font-size: 0.9rem;
        font-weight: 500;
        padding: 0.5em 0.75em;
        border-radius: 0.5rem;
        text-decoration: none;
        white-space: nowrap;
        margin-right: 0.5rem;
        transition: background-color 0.3s, color 0.3s;
    }

        /* Icon before each tag */
        .tags-wrapper .badge::before {
            content: "#";
            margin-right: 4px;
            font-weight: bold;
        }

        /* Hover */
        .tags-wrapper .badge:hover {
            background-color: #5e1dc9;
            color: #fff;
            text-decoration: none;
        }

    
.btn-news {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
}
