/* =============================================
   UNIVERSITAS BANTEN - PMB DASHBOARD STYLE
   ============================================= */

/* =============================================
   PAGE HEADER / HERO (Dashboard)
   ============================================= */
.dash-hero {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    padding: 140px 0 60px;
}

.dash-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,171,0,0.18), transparent);
    filter: blur(50px);
}

.dash-hero h1 {
    line-height: 1.15;
}

.dash-crumb {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 22px;
    border-radius: 16px;
}

.dash-crumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.dash-crumb a:hover {
    color: var(--accent);
}

.dash-crumb .sep {
    color: rgba(255,255,255,0.4);
    margin: 0 8px;
}

/* =============================================
   BERITA / NEWS SECTION
   ============================================= */
.news-section {
    background: #f4f6fa;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
    border: 1px solid rgba(26,35,126,0.05);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-thumb {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #e9ecef;
}

.news-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 30px;
    z-index: 2;
}

.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.78rem;
    color: var(--primary-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: #6c757d;
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--primary);
    margin-top: 14px;
    transition: gap 0.3s;
}

.news-link:hover {
    color: var(--secondary);
    gap: 10px;
}

/* Skeleton loading */
.news-skeleton {
    padding-top: 60%;
    position: relative;
    overflow: hidden;
    background: #e9ecef;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #e9ecef;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* =============================================
   MINI INFO CARDS (Dashboard)
   ============================================= */
.dash-info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    height: 100%;
    transition: all 0.3s;
}

.dash-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dash-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient-1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.dash-info-card .lead {
    font-weight: 800;
    color: var(--primary);
}

/* Error / empty state for news */
.news-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .dash-hero {
        padding: 120px 0 50px;
    }

    .dash-hero h1 {
        font-size: 1.9rem;
    }
}

