/* ==========================================================================
   PENGUMUMAN CLIENT STYLES - MODERN & CLEAN
   Menggunakan variable global untuk konsistensi
   Tampilan compact tapi "WAH"
   ========================================================================== */

/* ==========================================================================
   BASE / WRAP
   ========================================================================== */

.pengumuman-client-wrap {
    min-height: 100vh;
    background: var(--surface-2, #f8f9fa);
    width: 100%;
    overflow-x: hidden;
}

/* Reset box-sizing */
.pengumuman-client-wrap *,
.pengumuman-client-wrap *::before,
.pengumuman-client-wrap *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   HERO SECTION - Modern dengan efek subtle
   ========================================================================== */
.pengumuman-hero-wrap {
    background: linear-gradient(135deg,
            var(--surface, #ffffff) 0%,
            var(--surface-2, #f8f9fa) 100%);
    color: var(--text, #212529);
    margin-top: calc(var(--head-offset, 70px) * -1) !important;
    padding-top: calc(var(--head-offset, 70px) + 2.5rem) !important;
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
}

/* Decorative pattern - subtle */
.pengumuman-hero-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 70% 30%,
            var(--primary-subtle, #e7f1ff) 0%,
            transparent 50%);
    opacity: 0.4;
    z-index: 0;
}

.pengumuman-hero {
    position: relative;
    z-index: 1;
}

.pengumuman-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text, #212529);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.pengumuman-hero .lead {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    color: var(--text-muted, #6c757d);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   LAYOUT - FULL WIDTH dengan padding responsive
   ========================================================================== */

.pengumuman-layout-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2.5rem clamp(1rem, 4vw, 4rem) 2rem;
}

.pengumuman-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ==========================================================================
   FEATURED CARD - Premium & Compact
   ========================================================================== */
.featured-card {
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--motion-hover, 180ms) var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
}

/* Premium accent gradient */
.featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            var(--primary, #0d6efd),
            var(--info, #0dcaf0));
}

.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary-subtle, #e7f1ff);
    color: var(--primary, #0d6efd);
    padding: 0.35rem 1.25rem;
    border-radius: var(--radius-pill, 999px);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(13, 110, 253, 0.15);
    letter-spacing: 0.3px;
}

.featured-title {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    margin-bottom: 1rem;
    color: var(--text, #212529);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--motion-hover, 180ms) ease;
}

.featured-title a:hover {
    color: var(--primary, #0d6efd);
}

.featured-excerpt {
    color: var(--text-muted, #6c757d);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Featured thumb */
.featured-thumb {
    display: block;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    margin: 0 0 1.25rem;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    background: var(--surface, #ffffff);
    height: 260px;
    position: relative;
}

.featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
}

.featured-thumb:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   GRID + CARD - Compact & Clean
   ========================================================================== */
.pengumuman-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.pengumuman-card {
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
    transition: all var(--motion-hover, 200ms) var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: cardFadeIn 0.3s ease forwards;
    opacity: 0;
}

/* Stagger animation */
.pengumuman-card:nth-child(2) {
    animation-delay: 0.05s;
}

.pengumuman-card:nth-child(3) {
    animation-delay: 0.1s;
}

.pengumuman-card:nth-child(4) {
    animation-delay: 0.15s;
}

.pengumuman-card:nth-child(5) {
    animation-delay: 0.2s;
}

.pengumuman-card:nth-child(n+6) {
    animation-delay: 0.25s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pengumuman-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

/* Pinned card dengan subtle indicator */
.pengumuman-card--pinned {
    background: linear-gradient(135deg,
            var(--card-bg, #ffffff),
            var(--warning-subtle, #fff3cd) 200%);
}

.pengumuman-card-pinned-label {
    position: absolute;
    top: -8px;
    right: 15px;
    background: var(--warning, #ffc107);
    color: #000;
    padding: 0.2rem 1rem;
    border-radius: var(--radius-pill, 999px);
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.2);
    z-index: 2;
    letter-spacing: 0.3px;
}

.pengumuman-card-header {
    margin-bottom: 0.75rem;
    position: relative;
}

.pengumuman-card-date {
    font-size: 0.75rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pengumuman-card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text, #212529);
}

.pengumuman-card-title a {
    color: var(--text, #212529);
    text-decoration: none;
    transition: color var(--motion-hover, 180ms) ease;
}

.pengumuman-card-title a:hover {
    color: var(--primary, #0d6efd);
}

.pengumuman-card-excerpt {
    color: var(--text-muted, #6c757d);
    line-height: 1.6;
    font-size: 0.8125rem;
    margin: 0 0 0.75rem;
    flex-grow: 1;
}

/* Card thumb */
.pengumuman-card-thumb {
    display: block;
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
    margin: 0 0 0.75rem;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    background: var(--surface, #ffffff);
    height: 140px;
    position: relative;
}

.pengumuman-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
}

.pengumuman-card:hover .pengumuman-card-thumb img {
    transform: scale(1.03);
}

/* ==========================================================================
   SIDEBAR - Clean & Compact
   ========================================================================== */
.pengumuman-sidebar {
    order: -1;
}

.sidebar-widget {
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
    transition: transform var(--motion-hover, 180ms) ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
}

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text, #212529);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    padding-bottom: 0.75rem;
}

/* Search Widget */
.search-widget .input-group {
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    transition: all var(--motion-hover, 180ms) ease;
    background: var(--surface-2, #f8f9fa);
}

.search-widget .input-group:focus-within {
    border-color: var(--primary, #0d6efd);
    box-shadow: 0 0 0 3px var(--primary-subtle, #e7f1ff);
    background: var(--surface, #ffffff);
}

.search-widget input {
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    background: transparent;
}

.search-widget input:focus {
    box-shadow: none;
    outline: none;
}

.search-widget button {
    background: transparent;
    border: none;
    color: var(--text-muted, #6c757d);
    padding: 0 1.25rem;
    transition: all var(--motion-hover, 180ms) ease;
    cursor: pointer;
}

.search-widget button:hover {
    color: var(--primary, #0d6efd);
    background: var(--primary-subtle, #e7f1ff);
}

/* Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--card-border, rgba(15, 23, 42, 0.04));
    transition: all var(--motion-hover, 180ms) ease;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    background: var(--surface-2, #f8f9fa);
    border-radius: var(--radius-sm, 8px);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin: 0 -0.5rem;
}

.category-link {
    color: var(--text, #212529);
    text-decoration: none;
    transition: color var(--motion-hover, 180ms) ease;
    flex-grow: 1;
    font-size: 0.875rem;
}

.category-link:hover {
    color: var(--primary, #0d6efd);
}

.category-count {
    background: var(--surface-2, #f8f9fa);
    color: var(--text-muted, #6c757d);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill, 999px);
    font-size: 0.7rem;
    min-width: 28px;
    text-align: center;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
}

/* Popular */
.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--card-border, rgba(15, 23, 42, 0.04));
    align-items: center;
    transition: all var(--motion-hover, 180ms) ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    background: var(--surface-2, #f8f9fa);
    border-radius: var(--radius-sm, 8px);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin: 0 -0.5rem;
}

.popular-number {
    background: var(--primary-subtle, #e7f1ff);
    color: var(--primary, #0d6efd);
    width: 26px;
    height: 26px;
    border-radius: var(--radius-pill, 999px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.popular-content {
    flex: 1;
    min-width: 0;
    /* Untuk text truncate */
}

.popular-title {
    font-size: 0.8125rem;
    margin-bottom: 0.15rem;
    line-height: 1.4;
    font-weight: 500;
}

.popular-title a {
    color: var(--text, #212529);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--motion-hover, 180ms) ease;
}

.popular-title a:hover {
    color: var(--primary, #0d6efd);
}

.popular-date {
    font-size: 0.6875rem;
    color: var(--text-muted, #6c757d);
}

/* ==========================================================================
   PAGINATION - Modern
   ========================================================================== */
.pagination-modern {
    margin-top: 2rem;
}

.pagination-modern .pagination {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.pagination-modern .page-link {
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    color: var(--text, #212529);
    margin: 0;
    border-radius: var(--radius-md, 12px);
    padding: 0.5rem 1rem;
    transition: all var(--motion-hover, 180ms) var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
    font-size: 0.875rem;
    text-decoration: none;
    display: block;
    background: var(--surface, #ffffff);
}

.pagination-modern .page-link:hover {
    background: var(--surface-2, #f8f9fa);
    border-color: var(--primary, #0d6efd);
    color: var(--primary, #0d6efd);
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: var(--primary, #0d6efd);
    border-color: var(--primary, #0d6efd);
    color: var(--primary-contrast, #ffffff);
}

/* ==========================================================================
   SHOW PAGE (ARTICLE) - Clean Typography
   ========================================================================== */
.article-content {
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg, 16px);
    padding: 2rem;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
    width: 100%;
    overflow: hidden;
}

.article-header {
    border-bottom: 1px solid var(--card-border, rgba(15, 23, 42, 0.04));
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--text, #212529);
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-muted, #6c757d);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-body .content-wrapper {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text, #212529);
}

.article-body .content-wrapper p {
    margin-bottom: 1.25rem;
}

.article-body .content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md, 12px);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
}

/* Article cover */
.article-cover {
    width: 100%;
    margin: 0 0 1.5rem;
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    background: var(--surface-2, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 500px;
}

.article-cover img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

/* Share Section - Modern & Clean */
.share-section {
    background: var(--surface-2, #f8f9fa);
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-buttons .btn {
    border-radius: var(--radius-pill, 999px);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: all var(--motion-hover, 180ms) var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    background: var(--surface, #ffffff);
    color: var(--text, #212529);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

.share-buttons .btn i {
    font-size: 1.1rem;
}

.share-buttons .btn-success {
    background: var(--success, #198754);
    color: white;
    border-color: transparent;
}

/* Related Articles */
.related-section {
    margin-top: 2.5rem;
}

.related-section h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    color: var(--text, #212529);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
    transition: all var(--motion-hover, 180ms) var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
    overflow: hidden;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border-color: transparent;
}

.related-card .card-body {
    padding: 1.25rem;
}

.related-title {
    font-size: 0.9375rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-title a {
    color: var(--text, #212529);
    text-decoration: none;
    transition: color var(--motion-hover, 180ms) ease;
}

.related-title a:hover {
    color: var(--primary, #0d6efd);
}

/* ==========================================================================
   EMPTY STATE - Engaging & Modern
   ========================================================================== */
.pengumuman-empty {
    padding: 4rem 1.5rem;
    text-align: center;
    background: var(--card-bg, #ffffff);
    border-radius: var(--radius-lg, 16px);
    border: 1px solid var(--card-border, rgba(15, 23, 42, 0.06));
    max-width: 500px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.pengumuman-empty::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-subtle, #e7f1ff);
    opacity: 0.4;
    z-index: 0;
}

.pengumuman-empty::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--info-subtle, #cff4fc);
    opacity: 0.4;
    z-index: 0;
}

.pengumuman-empty-icon {
    font-size: 4rem;
    color: var(--primary, #0d6efd);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.pengumuman-empty h3 {
    font-weight: 600;
    color: var(--text, #212529);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.pengumuman-empty p {
    color: var(--text-muted, #6c757d);
    font-size: 0.875rem;
    max-width: 360px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.pengumuman-empty .btn {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-pill, 999px);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--motion-hover, 180ms) var(--ease-swift, cubic-bezier(0.4, 0, 0.2, 1));
    background: var(--primary, #0d6efd);
    border: none;
    color: white;
}

.pengumuman-empty .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .pengumuman-layout-wrap {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .pengumuman-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-cover {
        max-height: 400px;
    }

    .article-cover img {
        max-height: 380px;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .pengumuman-layout {
        grid-template-columns: 3fr 1fr;
        gap: 2.5rem;
    }

    .pengumuman-sidebar {
        order: 2;
    }

    .pengumuman-layout-wrap {
        padding-left: clamp(2rem, 5vw, 4rem);
        padding-right: clamp(2rem, 5vw, 4rem);
    }

    .pengumuman-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .article-cover {
        max-height: 500px;
    }

    .article-cover img {
        max-height: 480px;
    }
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .pengumuman-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .pengumuman-layout {
        gap: 3rem;
    }
}

/* ==========================================================================
   MOBILE (max-width: 767px) - Optimized
   ========================================================================== */
@media (max-width: 767px) {

    /* Base */
    .pengumuman-layout-wrap {
        padding: 1rem 0.75rem 1.5rem;
    }

    .pengumuman-layout {
        gap: 1rem;
    }

    /* Hero */
    .pengumuman-hero-wrap {
        padding-top: calc(var(--head-offset, 70px) + 1.5rem) !important;
        padding-bottom: 1.5rem !important;
    }

    .pengumuman-hero h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .pengumuman-hero .lead {
        font-size: 0.875rem;
        max-width: 95%;
    }

    /* Mobile Search */
    .pengumuman-search-mobile {
        padding: 0 0.75rem;
        margin-bottom: 0.5rem;
    }

    .pengumuman-search-mobile .sidebar-widget {
        padding: 1rem;
        border-radius: var(--radius-md, 12px);
        margin-bottom: 0.5rem;
    }

    /* Featured Card */
    .featured-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
        border-radius: var(--radius-md, 12px);
    }

    .featured-badge {
        padding: 0.25rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .featured-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .featured-excerpt {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .featured-thumb {
        height: 200px;
        border-radius: var(--radius-sm, 8px);
        margin-bottom: 1rem;
    }

    /* Grid Cards */
    .pengumuman-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .pengumuman-card {
        padding: 1rem;
        border-radius: var(--radius-md, 12px);
        animation: none;
        opacity: 1;
    }

    .pengumuman-card-pinned-label {
        font-size: 0.65rem;
        padding: 0.15rem 0.75rem;
        top: -6px;
        right: 10px;
    }

    .pengumuman-card-date {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .pengumuman-card-title {
        font-size: 0.9375rem;
        margin-bottom: 0.35rem;
    }

    .pengumuman-card-excerpt {
        font-size: 0.8125rem;
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }

    .pengumuman-card-thumb {
        height: 180px;
        margin-bottom: 0.75rem;
    }

    /* Sidebar */
    .sidebar-widget {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: var(--radius-md, 12px);
    }

    .sidebar-widget h3 {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .category-item {
        padding: 0.5rem 0;
    }

    .category-link {
        font-size: 0.8125rem;
    }

    .category-count {
        font-size: 0.65rem;
        min-width: 24px;
    }

    .popular-item {
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .popular-number {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .popular-title {
        font-size: 0.8125rem;
    }

    .popular-date {
        font-size: 0.65rem;
    }

    /* Pagination */
    .pagination-modern {
        margin-top: 1.25rem;
    }

    .pagination-modern .page-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8125rem;
    }

    /* Article Page - SHOW */
    .article-content {
        padding: 1.25rem;
        border-radius: var(--radius-md, 12px);
    }

    .article-header {
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .article-title {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .article-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
    }

    .article-body .content-wrapper {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .article-body .content-wrapper p {
        margin-bottom: 0.75rem;
    }

    .article-body .content-wrapper img {
        border-radius: var(--radius-sm, 8px);
        margin: 1rem 0;
    }

    .article-cover {
        margin-bottom: 1rem;
        max-height: 300px;
        border-radius: var(--radius-sm, 8px);
    }

    .article-cover img {
        max-height: 280px;
        width: 100%;
        object-fit: cover;
    }

    /* Share Section */
    .share-section {
        padding: 1rem;
        margin-top: 1.5rem;
        border-radius: var(--radius-md, 12px);
    }

    .share-buttons {
        gap: 0.35rem;
    }

    .share-buttons .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8125rem;
    }

    .share-buttons .btn i {
        font-size: 1rem;
    }

    /* Related */
    .related-section {
        margin-top: 1.5rem;
    }

    .related-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .related-card .card-body {
        padding: 0.875rem;
    }

    .related-title {
        font-size: 0.875rem;
    }

    /* Empty State */
    .pengumuman-empty {
        padding: 2.5rem 1rem;
        margin: 1.5rem auto;
    }

    .pengumuman-empty-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .pengumuman-empty h3 {
        font-size: 1.125rem;
    }

    .pengumuman-empty p {
        font-size: 0.8125rem;
        margin-bottom: 1.5rem;
    }

    /* ====== PERBAIKAN KHUSUS MOBILE SHOW ====== */
    /* Pastikan konten tidak overflow */
    .article-body .content-wrapper {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }

    .article-body .content-wrapper img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .article-body .content-wrapper table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .article-body .content-wrapper iframe,
    .article-body .content-wrapper video {
        max-width: 100% !important;
        height: auto !important;
    }

    .article-body .content-wrapper blockquote {
        padding-left: 0.75rem;
        font-size: 0.875rem;
        margin: 0.75rem 0;
    }

    .article-body .content-wrapper ul,
    .article-body .content-wrapper ol {
        padding-left: 1.25rem !important;
    }

    .article-body .content-wrapper .ql-indent-1 {
        margin-left: 1.5rem;
    }

    .article-body .content-wrapper .ql-indent-2 {
        margin-left: 2.5rem;
    }

    .article-body .content-wrapper .ql-indent-3 {
        margin-left: 3.5rem;
    }

    .article-body .content-wrapper .ql-indent-4 {
        margin-left: 4.5rem;
    }

    .article-body .content-wrapper .ql-indent-5 {
        margin-left: 5.5rem;
    }

    /* Share button text hide pada sangat kecil */
    .share-buttons .btn span.d-none.d-sm-inline {
        display: none !important;
    }

    .share-buttons .btn {
        padding: 0.4rem 0.6rem;
        min-width: 44px;
        justify-content: center;
    }

    .share-buttons .btn i {
        margin: 0;
        font-size: 1.1rem;
    }

    /* Nonaktifkan hover effect di mobile */
    .featured-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
    }

    .pengumuman-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
    }

    .sidebar-widget:hover {
        transform: none;
    }

    .related-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
    }

    .category-item:hover {
        background: transparent;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }

    .popular-item:hover {
        background: transparent;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }

    .share-buttons .btn:hover {
        transform: none;
        box-shadow: none;
    }

    .pengumuman-empty .btn:hover {
        transform: none;
        box-shadow: none;
    }

    .featured-thumb:hover img {
        transform: none;
    }

    .pengumuman-card:hover .pengumuman-card-thumb img {
        transform: none;
    }

    .featured-title a:hover {
        color: var(--text, #212529);
    }

    .pengumuman-card-title a:hover {
        color: var(--text, #212529);
    }

    .popular-title a:hover {
        color: var(--text, #212529);
    }

    .related-title a:hover {
        color: var(--text, #212529);
    }

    .category-link:hover {
        color: var(--text, #212529);
    }

    .search-widget button:hover {
        color: var(--text-muted, #6c757d);
        background: transparent;
    }

    .pagination-modern .page-link:hover {
        transform: none;
        background: var(--surface, #ffffff);
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
        color: var(--text, #212529);
    }
}

/* Extra Small (max-width: 360px) */
@media (max-width: 360px) {
    .pengumuman-layout-wrap {
        padding: 0.75rem 0.5rem 1.25rem;
    }

    .featured-title {
        font-size: 1.15rem;
    }

    .article-title {
        font-size: 1.25rem;
    }

    .article-cover {
        max-height: 220px;
    }

    .article-cover img {
        max-height: 200px;
    }

    .share-buttons .btn {
        padding: 0.35rem 0.6rem;
        min-width: 40px;
    }

    .share-buttons .btn span {
        display: none !important;
    }

    .share-buttons .btn i {
        margin: 0;
        font-size: 1rem;
    }
}

/* ==========================================================================
   TOUCH FRIENDLY - Minimal 44x44 untuk elemen interactive
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {

    /* Touch targets */
    .search-widget button,
    .share-buttons .btn,
    .pagination-modern .page-link,
    .category-link,
    .popular-title a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .category-link,
    .popular-title a {
        justify-content: flex-start;
        padding: 10px 0;
    }

    .pengumuman-card-title a,
    .related-title a {
        padding: 12px 0;
        display: block;
    }

    /* Remove hover effects on touch devices */
    .featured-card:hover,
    .pengumuman-card:hover,
    .sidebar-widget:hover,
    .related-card:hover {
        transform: none;
    }

    /* Active state instead */
    .featured-card:active,
    .pengumuman-card:active,
    .related-card:active {
        transform: scale(0.99);
        background: var(--surface-2, #f8f9fa);
    }
}

/* ==========================================================================
   BROWSER SPECIFIC FIXES
   ========================================================================== */

/* Safari Mobile */
@supports (-webkit-touch-callout: none) {
    .pengumuman-client-wrap {
        min-height: -webkit-fill-available;
    }

    .article-cover img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Firefox */
@-moz-document url-prefix() {
    .article-cover {
        display: flex;
    }

    .article-cover img {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {

    .pengumuman-hero-wrap,
    .sidebar-widget,
    .share-section,
    .pagination-modern,
    .pengumuman-search-mobile,
    .related-section {
        display: none !important;
    }

    .pengumuman-layout {
        display: block;
    }

    .article-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .article-cover img {
        max-height: 300px;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   ALIGNMENT STYLES UNTUK KONTEN PENGUMUMAN
   ============================================ */
.article-body .ql-align-center {
    text-align: center;
}

.article-body .ql-align-right {
    text-align: right;
}

.article-body .ql-align-justify {
    text-align: justify;
}

/* Jika ingin juga mendukung list dan indentasi dari Quill */
.article-body ul,
.article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-body li {
    margin-bottom: 0.25rem;
}

/* Untuk tampilan blockquote jika ada */
.article-body blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
    font-style: italic;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {

    .article-body .ql-align-center,
    .article-body .ql-align-right,
    .article-body .ql-align-justify {
        text-align: inherit;
        /* fallback, tapi tetap akan mengikuti class */
    }

    /* Pastikan tetap berfungsi */
    .article-body .ql-align-center {
        text-align: center !important;
    }

    .article-body .ql-align-right {
        text-align: right !important;
    }

    .article-body .ql-align-justify {
        text-align: justify !important;
    }
}

/* ========== STYLE LIST UNTUK KONTEN PENGUMUMAN (seperti Quill) ========== */
.article-body ul,
.article-body ol {
    padding-left: 1.5em !important;
    /* menjorok seperti Quill */
    margin-bottom: 1rem;
}

.article-body li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
}

/* Tipe bullet */
.article-body ul {
    list-style-type: disc;
}

.article-body ul ul {
    list-style-type: circle;
}

.article-body ul ul ul {
    list-style-type: square;
}

/* Tipe numbering */
.article-body ol {
    list-style-type: decimal;
}

.article-body ol ol {
    list-style-type: lower-alpha;
}

.article-body ol ol ol {
    list-style-type: lower-roman;
}

/* Jika Quill menghasilkan class indent */
.article-body .ql-indent-1 {
    margin-left: 2em;
}

.article-body .ql-indent-2 {
    margin-left: 4em;
}

.article-body .ql-indent-3 {
    margin-left: 6em;
}

.article-body .ql-indent-4 {
    margin-left: 8em;
}

.article-body .ql-indent-5 {
    margin-left: 10em;
}

/* ==========================================================================
   PRESS STATE - HANYA UNTUK ELEMEN INTERAKTIF DI TOUCH DEVICE
   ========================================================================== */

/* Hanya elemen interaktif yang mendapat efek press */
.btn,
.btn-primary,
.btn-sm,
.btn-copy-link,
.search-widget .btn,
.category-link,
.popular-title a,
.related-title a,
.share-buttons a,
.featured-title a,
.pengumuman-card-title a,
.pengumuman-card-thumb,
.featured-thumb,
.pagination-modern .page-link,
a[href]:not(.featured-card *):not(.pengumuman-card *):not(.popular-item *):not(.related-card *),
button:not(.featured-card *):not(.pengumuman-card *):not(.popular-item *):not(.related-card *),
[role="button"]:not(.featured-card *):not(.pengumuman-card *):not(.popular-item *):not(.related-card *) {
    touch-action: manipulation;
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.2),
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    will-change: transform;
}

/* Efek saat disentuh (kelas .press) */
.btn.press,
.btn-primary.press,
.btn-sm.press,
.btn-copy-link.press {
    transform: scale(0.96) translateY(1px) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.05s cubic-bezier(0.2, 0.9, 0.4, 1.1),
        box-shadow 0.05s ease !important;
}

.search-widget .btn.press {
    transform: scale(0.92) !important;
    transition: transform 0.05s ease !important;
}

.category-link.press {
    transform: scale(0.98) translateX(2px) !important;
    transition: transform 0.05s ease !important;
}

.popular-title a.press,
.related-title a.press,
.featured-title a.press,
.pengumuman-card-title a.press {
    transform: scale(0.98) !important;
    transition: transform 0.05s ease !important;
}

.pengumuman-card-thumb.press,
.featured-thumb.press {
    transform: scale(0.97) !important;
    transition: transform 0.05s ease !important;
}

.pagination-modern .page-link.press {
    transform: scale(0.95) translateY(1px) !important;
    transition: transform 0.05s ease !important;
}

/* Link */
a.press {
    transform: scale(0.98);
    text-decoration: none;
}

/* Mobile: nonaktifkan semua efek press pada card dan elemen non-interaktif */
@media (hover: none) and (pointer: coarse) {

    /* Nonaktifkan efek press pada card */
    .featured-card.press,
    .pengumuman-card.press,
    .sidebar-widget.press,
    .related-card.press,
    .popular-item.press,
    .category-item.press,
    .badge.press,
    .pengumuman-empty.press,
    .article-content.press {
        transform: none !important;
        box-shadow: none !important;
        transition: none !important;
        background-color: transparent !important;
    }

    /* Nonaktifkan hover yang mengganggu */
    .featured-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
    }

    .pengumuman-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
    }

    .sidebar-widget:hover {
        transform: none;
    }

    .related-card:hover {
        transform: none;
        box-shadow: var(--shadow-soft, 0 8px 24px rgba(15, 23, 42, 0.08));
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
    }

    .category-item:hover {
        background: transparent;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }

    .popular-item:hover {
        background: transparent;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
    }

    .share-buttons .btn:hover {
        transform: none;
        box-shadow: none;
    }

    .pengumuman-empty .btn:hover {
        transform: none;
        box-shadow: none;
    }

    .featured-thumb:hover img {
        transform: none;
    }

    .pengumuman-card:hover .pengumuman-card-thumb img {
        transform: none;
    }

    .featured-title a:hover {
        color: var(--text, #212529);
    }

    .pengumuman-card-title a:hover {
        color: var(--text, #212529);
    }

    .popular-title a:hover {
        color: var(--text, #212529);
    }

    .related-title a:hover {
        color: var(--text, #212529);
    }

    .category-link:hover {
        color: var(--text, #212529);
    }

    .search-widget button:hover {
        color: var(--text-muted, #6c757d);
        background: transparent;
    }

    .pagination-modern .page-link:hover {
        transform: none;
        background: var(--surface, #ffffff);
        border-color: var(--card-border, rgba(15, 23, 42, 0.06));
        color: var(--text, #212529);
    }

    /* Hanya elemen interaktif yang tetap dapat press */
    .btn.press,
    .btn-primary.press,
    .btn-sm.press,
    .btn-copy-link.press {
        transform: scale(0.96) translateY(1px) !important;
        transition: transform 0.04s ease !important;
    }

    .search-widget .btn.press {
        transform: scale(0.92) !important;
    }

    .category-link.press {
        transform: scale(0.98) translateX(2px) !important;
    }
}

/* Jika pengguna mengurangi gerakan */
@media (prefers-reduced-motion: reduce) {

    .btn.press,
    .category-link.press,
    .popular-title a.press {
        transform: none !important;
        transition: none !important;
    }
}
