/* Berita dinamis dari situs resmi Kemenag Sumenep pada beranda PPID */
.news-section {
    padding: 34px 0 42px;
    background: linear-gradient(180deg, #f7fbf9 0%, #ffffff 100%);
    border-top: 1px solid #e8efec;
    border-bottom: 1px solid #e8efec;
}

.news-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 19px;
}

.news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--ppid-green, #087f4d);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.news-section-heading h2 {
    margin: 0;
    color: var(--ppid-blue, #073f73);
    font-size: clamp(21px, 2.3vw, 27px);
    font-weight: 800;
    line-height: 1.25;
}

.news-section-heading p {
    margin: 6px 0 0;
    color: var(--ppid-muted, #65788b);
    font-size: 12px;
    line-height: 1.65;
}

.news-view-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #b8dfcd;
    border-radius: 8px;
    background: #fff;
    color: var(--ppid-green, #087f4d) !important;
    font-size: 11px;
    font-weight: 800;
    transition: background .2s ease, border-color .2s ease;
}

.news-view-all:hover {
    background: #eaf7f1;
    border-color: var(--ppid-green, #087f4d);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.news-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e9e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(7, 63, 115, .045);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(7, 63, 115, .09);
}

.news-card-image {
    position: relative;
    display: block;
    height: 158px;
    overflow: hidden;
    background: linear-gradient(135deg, #e4f4ec 0%, #eef3fb 55%, #f5effb 100%);
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

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

.news-image-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #087f4d;
    font-size: 42px;
    background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.8), transparent 50%), linear-gradient(135deg, #e0f4e9, #edf3fb 58%, #f0eafb);
}

.news-image-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 5px;
    background: rgba(5, 47, 88, .82);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
}

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 14px 15px;
}

.news-card-body h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    color: var(--ppid-blue, #073f73);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card-body h3 a {
    color: inherit !important;
}

.news-card-body h3 a:hover {
    color: var(--ppid-green, #087f4d) !important;
}

.news-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 13px;
    color: #607588;
    font-size: 11px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--ppid-green, #087f4d) !important;
    font-size: 10px;
    font-weight: 800;
}

.news-read-more:hover {
    text-decoration: underline;
}

.news-unavailable {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #dcebe3;
    border-radius: 10px;
    background: #fff;
    color: #536d7e;
    font-size: 12px;
}

.news-unavailable > i {
    color: var(--ppid-green, #087f4d);
    font-size: 18px;
}

.news-unavailable a {
    color: var(--ppid-green, #087f4d) !important;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card-image { height: 170px; }
}

@media (max-width: 560px) {
    .news-section { padding: 27px 0 32px; }
    .news-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .news-grid { grid-template-columns: 1fr; gap: 13px; }
    .news-card { display: grid; grid-template-columns: 125px minmax(0, 1fr); }
    .news-card-image { height: 100%; min-height: 160px; }
    .news-image-label { left: 6px; bottom: 6px; padding: 4px 5px; font-size: 8px; }
    .news-card-body { padding: 11px 12px; }
    .news-card-body h3 { font-size: 12px; -webkit-line-clamp: 3; }
    .news-card-body p { font-size: 10px; -webkit-line-clamp: 3; }
}
