/* News Hero Section */
.news-hero-section {
    position: relative;
    overflow: hidden;
}

.news-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(59, 130, 246, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* News Cards */
.news-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem !important;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.news-image-container {
    position: relative;
    overflow: hidden;
}

.news-image-container img {
    transition: transform 0.3s ease;
}

.news-card:hover .news-image-container img {
    transform: scale(1.05);
}

.news-date-badge {
    z-index: 2;
}

.news-category-badge {
    z-index: 2;
}

.news-title {
    color: #1e293b;
    line-height: 1.4;
}

.news-card:hover .news-title {
    color: #3b82f6;
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-meta {
    font-size: 0.85rem;
}

/* Search Box */
.search-box .form-control {
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

/* Pagination Styling */
.pagination .page-link {
    color: #3b82f6;
    border-color: #e2e8f0;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-color: #3b82f6;
    color: white;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border-color: #3b82f6;
}

/* Breadcrumb styling */
.breadcrumb-item.active {
    color: #64748b;
}

.breadcrumb-item a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2563eb;
}

/* Breadcrumb - Menggunakan CSS Variable */
.breadcrumb-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-hover) !important;
    text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-secondary);
    font-weight: bold;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Badge styling untuk news */
.badge.bg-warning {
    background-color: #ffffff !important;
    color: #1e3a8a !important;
    border: 1px solid #3b82f6;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    color: #ffffff !important;
    font-weight: bold;
}

/* Button styling untuk news cards */
.btn-outline-danger {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

.btn-outline-danger:hover {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
}

.btn-danger {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
    border-color: #3b82f6 !important;
}

/* Hero section text */
.text-warning {
    color: #ffffff !important;
}

.text-danger {
    color: #3b82f6 !important;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-hero-section {
        min-height: 35vh !important;
        padding-top: 100px !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .search-box {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .news-date-badge,
    .news-category-badge {
        position: static;
        margin: 10px;
        display: inline-block;
    }
    
    .card-body {
        padding: 1rem !important;
    }
}

/*  CSS for news detail */
.news-detail-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #1e293b;
    line-height: 1.3;
}

.news-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
}

.news-content h3 {
    color: #1e293b;
    font-weight: bold;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.news-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.news-content ul, .news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

.news-link:hover {
    color: #3b82f6 !important;
    text-decoration: underline !important;
}

.related-news-item:last-child,
.popular-news-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.badge.bg-warning {
    background-color: #fbbf24 !important;
    color: #1f2937 !important;
    font-weight: bold;
    min-width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-detail-title {
        font-size: 1.8rem;
    }
    
    .news-content {
        font-size: 1rem;
    }
    
    .news-image img {
        height: 250px !important;
    }
    
    .news-meta .row {
        text-align: center;
    }
    
    .news-meta .col-md-6 {
        margin-bottom: 2rem;
    }
    
    .news-meta .d-flex {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .news-detail-title {
        font-size: 1.5rem;
    }
    
    .news-content {
        font-size: 0.95rem;
    }
    
    .news-image img {
        height: 200px !important;
    }
    
    .sidebar {
        margin-top: 2rem;
    }
}