/* News Public Module Stylesheet */

/* Premium Hero Section */
.news-hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #1d4ed8 100%);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.35);
    position: relative;
}

.news-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

.border-white-20 {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.85) !important;
}

.text-gradient-light {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
    display: inline-block;
}

.news-search-box {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* News Cards */
.news-card {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.1) !important;
    border-color: #e2e8f0;
}

.news-card-img-wrapper {
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.news-card-img-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover .news-card-img-wrapper img,
.featured-news-card:hover .featured-img {
    transform: scale(1.08);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}

.avatar-circle-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    flex-shrink: 0;
}

.btn-read-more {
    transition: all 0.3s ease;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.news-card:hover .btn-read-more i,
.featured-news-card:hover .btn-read-more i {
    transform: translateX(4px);
}

.featured-news-card {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #f1f5f9;
}

.featured-news-card:hover {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15) !important;
}

/* Category Filter Pills */
.news-tag-pill {
    padding: 0.45rem 1.2rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.news-tag-pill:hover, .news-tag-pill.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Article Body & Detail Page Styling */
.article-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.article-body figure.image {
    margin: 1.5rem auto;
    max-width: 100%;
    text-align: center;
}

.article-body figure.image figcaption {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-style: italic;
}

.article-body figure.media,
.article-body .media,
.article-body iframe,
.article-body video {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9;
    min-height: 380px;
    height: auto !important;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-body blockquote {
    border-left: 4px solid #2563eb;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: #1e293b;
    background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%);
    border-radius: 0 12px 12px 0;
    font-size: 1.05rem;
}

.bg-primary-soft {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

/* Related News Sidebar Spacing Fix */
.related-news-list a.flex-shrink-0 {
    margin-right: 1rem !important;
    display: block;
}

