/* ============================================================
   🌐 APP CATEGORY GRID - Modern Hover Overlay
============================================================ */
.app-header-box {
    background: #f4f9ff;
    border: 1px solid #dce9f8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
}
.app-header-box h2 {
    color: #004a87;
    margin-bottom: 10px;
}
.app-total {
    margin-top: 10px;
    font-weight: 500;
    color: #004a87;
}

/* GRID CATEGORY */
.app-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.app-category-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}
.app-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.app-category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}
.app-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.app-category-card:hover::before {
    opacity: 1;
}
.app-overlay-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.app-category-card:hover .app-overlay-info {
    opacity: 1;
}
.app-overlay-info .app-count {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.app-overlay-info .app-label {
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.app-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #004a87;
    margin: 15px 0 12px;
}

/* ============================================================
   🧾 HEADER KATEGORI (TOTAL LAYANAN)
============================================================ */
.app-cat-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    background: #f9fcff;
    border: 1px solid #e1efff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.app-back-btn {
    background: #004a87;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}
.app-back-btn:hover {
    background: #006ad1;
}
.app-cat-info {
    flex: 1;
    margin-left: 20px;
    font-size: 0.95rem;
    color: #333;
}
.app-cat-title-text {
    display: block;
    font-weight: 700;
    color: #004a87;
}
.app-cat-total {
    background: #eaf3ff;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 500;
    color: #004a87;
}

/* ============================================================
   💻 GRID APLIKASI
============================================================ */
.app-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}
.app-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.app-card:hover {
    transform: translateY(-4px);
}
.app-card-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}
.app-title {
    color: #004a87;
    font-size: 1.1rem;
    font-weight: 600;
}
.app-desc {
    color: #555;
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 45px;
}
.app-link-btn {
    background: #004a87;
    color: #fff;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    margin-top: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s ease;
}
.app-link-btn:hover {
    background: #006ad1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .app-category-card img {
        height: 150px;
    }
    .app-cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .app-cat-total {
        align-self: flex-end;
    }
}
